Set CMAKE_INSTALL_PREFIX default more correctly
This commit is contained in:
parent
b7d26a46f6
commit
f41496b399
|
|
@ -25,7 +25,3 @@ add_compile_options(-fno-strict-aliasing)
|
||||||
# This is necessary to hide all symbols unless explicitly exported
|
# This is necessary to hide all symbols unless explicitly exported
|
||||||
# via the Q_EXPORT macro
|
# via the Q_EXPORT macro
|
||||||
add_compile_options(-fvisibility=hidden)
|
add_compile_options(-fvisibility=hidden)
|
||||||
|
|
||||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
||||||
set(CMAKE_INSTALL_PREFIX /opt/quake3)
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
include(platforms/emscripten)
|
include(platforms/emscripten)
|
||||||
|
include(platforms/linux)
|
||||||
include(platforms/macos)
|
include(platforms/macos)
|
||||||
include(platforms/unix)
|
include(platforms/unix)
|
||||||
include(platforms/windows)
|
include(platforms/windows)
|
||||||
|
|
|
||||||
9
cmake/platforms/linux.cmake
Normal file
9
cmake/platforms/linux.cmake
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Linux-like specific settings, i.e. including FreeBSD etc.
|
||||||
|
|
||||||
|
if(NOT UNIX OR APPLE)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||||
|
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE /opt/quake3)
|
||||||
|
endif()
|
||||||
Loading…
Reference in New Issue
Block a user