Skip to content

Commit

Permalink
Check if .git directory exists before cloning (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourslab committed Nov 4, 2020
1 parent a75391d commit 96453ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ macro( clone_path path )
endif()
endmacro()

clone_path( ${MODULES_DIR} )
if( EXISTS ${ROOT_DIR}/.git )
clone_path( ${MODULES_DIR} )
endif()

# Add build configuration for all 3rd party modules.
add_subdirectory(${3RDPARTY_DIR})

0 comments on commit 96453ce

Please sign in to comment.