Skip to content

Commit

Permalink
update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Oct 4, 2024
1 parent bbaca9e commit 254443b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ SET(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1)
set(CPACK_VERBATIM_VARIABLES YES)
set(CPACK_INSTALL_CMAKE_CONFIGURATIONS Release)

set(OS_SYSTEM )
set(IS_REDHAT FALSE)
if(WIN32)
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
set(CMAKE_INSTALLER_DIR "C:/Program Files/")
Expand All @@ -43,7 +45,7 @@ if(WIN32)
set(CMAKE_INSTALLER_DIR "C:/Program Files (x86)/")
set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/${PROJECT_NAME}")
endif()
else()
elseif(NOT APPLE)
file(STRINGS /etc/os-release OS_SYSTEM REGEX "^NAME=")
string(REGEX REPLACE "NAME=\"(.*)\"" "\\1" OS_SYSTEM "${OS_SYSTEM}")
if(${OS_SYSTEM} STREQUAL "CentOS Stream"
Expand Down

0 comments on commit 254443b

Please sign in to comment.