mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Fixed an issue where CMAKE_INSTALL_PREFIX was not cached.
This commit is contained in:
parent
f24b27c809
commit
12cc3b05b9
|
@ -197,11 +197,11 @@ endif()
|
|||
if(NOT WIN32 AND NOT APPLE)
|
||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(CMAKE_INSTALL_PREFIX "/usr")
|
||||
set(CMAKE_INSTALL_PREFIX "/usr" CACHE INTERNAL "CMAKE_INSTALL_PREFIX")
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/pkg")
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/pkg" CACHE INTERNAL "CMAKE_INSTALL_PREFIX")
|
||||
else()
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE INTERNAL "CMAKE_INSTALL_PREFIX")
|
||||
endif()
|
||||
endif()
|
||||
message("-- Installation prefix is set to " ${CMAKE_INSTALL_PREFIX})
|
||||
|
|
Loading…
Reference in a new issue