summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-24 19:20:19 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-24 19:20:19 +0000
commitc06713cc9015d2db604712d7ebd6e8ef2997ba02 (patch)
treec149c9d8935dea3b9c7b56db97862841aec8056d /cmake
parent2d6cac6cb55da49adf02a76cb7a8f726fff2705a (diff)
downloadnavit-c06713cc9015d2db604712d7ebd6e8ef2997ba02.tar.gz
Fix:build/cmake:Force feature switch default if user did not set a value, so right value is recalculated. Otherwise support/ code is not disabled if missing library is installed. |Fixes #1055.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5196 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'cmake')
-rw-r--r--cmake/navit_macros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/navit_macros.cmake b/cmake/navit_macros.cmake
index 0aafd44a1..3f8139944 100644
--- a/cmake/navit_macros.cmake
+++ b/cmake/navit_macros.cmake
@@ -4,7 +4,7 @@ macro(set_feature_switch_default VARIABLE REASON ENABLE)
((${VARIABLE}_ORIGINAL AND ${VARIABLE}) OR # poor man's boolean equal
(NOT ${VARIABLE}_ORIGINAL AND NOT ${VARIABLE}))))
set(${VARIABLE}_REASON ${REASON})
- set(${VARIABLE} ${ENABLE} CACHE BOOL "feature switch")
+ set(${VARIABLE} ${ENABLE} CACHE BOOL "feature switch" FORCE)
else()
set(${VARIABLE}_REASON "User defined")
endif()