We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b450083 + 59a7e86 commit 0831844Copy full SHA for 0831844
CMakeLists.txt
@@ -113,8 +113,13 @@ INSTALL(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}config.cmake"
113
114
115
# Now also define a library that consists of the C++20 modules,
116
-# assuming the compiler supports this:
117
-if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
+# assuming the compiler and generator supports this:
+if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"
118
+ AND
119
+ ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 16
120
121
+ ${CMAKE_GENERATOR} STREQUAL "Ninja")
122
+ message(STATUS "Enabling the use of C++20-style modules")
123
set(SAMPLEFLOW_BUILD_MODULE "ON")
124
endif()
125
0 commit comments