Skip to content

Commit d2975d0

Browse files
authored
Update CMakeLists.txt
1 parent d908cfe commit d2975d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ if(NOT ${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
4040
else()
4141
set(CPM_RELEASE FALSE)
4242
endif()
43+
else()
44+
set(CPM_RELEASE TRUE)
4345
endif()
4446
find_package(CPM CONFIG REQUIRED NO_POLICY_SCOPE)
4547
endif()
4648

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

0 commit comments

Comments
 (0)