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 d908cfe commit d2975d0Copy full SHA for d2975d0
CMakeLists.txt
@@ -40,11 +40,13 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
40
else()
41
set(CPM_RELEASE FALSE)
42
endif()
43
+ else()
44
+ set(CPM_RELEASE TRUE)
45
46
find_package(CPM CONFIG REQUIRED NO_POLICY_SCOPE)
47
48
-if(NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
49
+if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
50
# Without it : Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target
51
# architecture is known. Please enable at least one language before including GNUInstallDirs.
52
enable_language(C)
0 commit comments