We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b0913 commit 36a19c5Copy full SHA for 36a19c5
CMakeLists.txt
@@ -6,9 +6,13 @@
6
7
cmake_minimum_required(VERSION 3.8) # CXX17
8
9
-if (NOT EXISTS "${CMAKE_SOURCE_DIR}/gitmodules/pybind11/include/pybind11/pybind11.h" )
10
- message(FATAL_ERROR "git submodules not initialised.\n Please run `git submodule update --init`")
11
-endif()
+file(GLOB mods RELATIVE ${CMAKE_SOURCE_DIR} gitmodules/*)
+foreach(mod ${mods})
+ file(GLOB tmp RELATIVE ${CMAKE_SOURCE_DIR} ${mod}/*)
12
+ if (tmp STREQUAL "")
13
+ message(FATAL_ERROR "git submodule ${mod} not initialised.\n Please run `git submodule update --init`")
14
+ endif()
15
+endforeach()
16
17
project(_PyPartMC LANGUAGES C CXX Fortran)
18
0 commit comments