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 0711ac1 commit a70c613Copy full SHA for a70c613
CMakeLists.txt
@@ -46,7 +46,7 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
46
find_package(CPM CONFIG REQUIRED NO_POLICY_SCOPE)
47
endif()
48
49
-if(CPM_INSTALL)
+if (NOT 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