From a5341a80e29dcd26881a411bb635a97b8cf86433 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 9 Jul 2018 13:57:28 +0200 Subject: Use CACHE variable for other common CMAKE variable This is done to be able to overwite from CLI those variables. CMAKE_INSTALL_PREFIX is a special case since it is set by default to '/usr/local' at CMake invocation. So overwriting by CLI is fine but set it up using config.cmake file not. So since CMake v3.7 there is a variable to know if this variable has been set by default or not. Change-Id: I60c5161fa9a4134d100ef709d0966d599871ad44 Signed-off-by: Romain Forlot --- cmake/common.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/common.cmake') diff --git a/cmake/common.cmake b/cmake/common.cmake index e764d34..8e57b26 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -85,6 +85,7 @@ foreach(file ${system_cmakefiles} ${home_cmakefiles} ${project_cmakefiles}) include(${file}) endforeach() +set_install_prefix() prevent_in_source_build() if(DEFINED PROJECT_SRC_DIR_PATTERN) -- cgit 1.2.3-korg