Skip to content

Commit 96453ce

Browse files
authored
Check if .git directory exists before cloning (#1377)
1 parent a75391d commit 96453ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ macro( clone_path path )
1212
endif()
1313
endmacro()
1414

15-
clone_path( ${MODULES_DIR} )
15+
if( EXISTS ${ROOT_DIR}/.git )
16+
clone_path( ${MODULES_DIR} )
17+
endif()
1618

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

0 commit comments

Comments
 (0)