##// END OF EJS Templates
[CMake] Small tweak on submodules detection...
jeandet -
r36:a004497acb0e
parent child
Show More
@@ -22,7 +22,7 find_package(Qt5 COMPONENTS Core Widgets Concurrent Network PrintSupport Svg Tes
22
22
23 find_package(pybind11 CONFIG QUIET)
23 find_package(pybind11 CONFIG QUIET)
24 if (NOT pybind11_FOUND)
24 if (NOT pybind11_FOUND)
25 if(NOT IS_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/external/pybind11)
25 if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/external/pybind11/CMakeLists.txt)
26 message("Init submodule pybind11")
26 message("Init submodule pybind11")
27 execute_process(COMMAND git submodule init external/pybind11 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
27 execute_process(COMMAND git submodule init external/pybind11 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
28 execute_process(COMMAND git submodule update external/pybind11 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
28 execute_process(COMMAND git submodule update external/pybind11 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
@@ -32,7 +32,7 endif()
32
32
33 find_package(libcatalogs CONFIG QUIET)
33 find_package(libcatalogs CONFIG QUIET)
34 if (NOT catalogs_FOUND)
34 if (NOT catalogs_FOUND)
35 if(NOT IS_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/external/libcatalogs)
35 if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/external/libcatalogs/CMakeLists.txt)
36 message("Init submodule libcatalogs")
36 message("Init submodule libcatalogs")
37 execute_process(COMMAND git submodule init external/libcatalogs WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
37 execute_process(COMMAND git submodule init external/libcatalogs WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
38 execute_process(COMMAND git submodule update external/libcatalogs WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
38 execute_process(COMMAND git submodule update external/libcatalogs WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
General Comments 0
You need to be logged in to leave comments. Login now