From: TimePath Date: Mon, 31 Jul 2017 10:58:16 +0000 (+1000) Subject: CMake: make default install prefix actually work X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b13daa752befa6586ce4dec9d8ff850aab2a8597;p=xonotic%2Fnetradiant.git CMake: make default install prefix actually work --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f30b0a2e..b95fd628 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") project(NetRadiant C CXX) option(BUILD_RADIANT "Build the gui" ON) -if (NOT CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install") +if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install" CACHE PATH "..." FORCE) endif () #-----------------------------------------------------------------------