Skip to content

Commit a70c613

Browse files
flagardeLecrisUT
andauthored
Update CMakeLists.txt
Co-authored-by: Cristian Le <github@lecris.me>
1 parent 0711ac1 commit a70c613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
4646
find_package(CPM CONFIG REQUIRED NO_POLICY_SCOPE)
4747
endif()
4848

49-
if(CPM_INSTALL)
49+
if (NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
5050
# Without it : Unable to determine default CMAKE_INSTALL_LIBDIR directory because no target
5151
# architecture is known. Please enable at least one language before including GNUInstallDirs.
5252
enable_language(C)

0 commit comments

Comments
 (0)