summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPierre GRANDIN <grandinp@altern.org>2015-12-31 08:16:02 -0800
committerPierre GRANDIN <grandinp@altern.org>2015-12-31 08:16:02 -0800
commit2ae3c4ba85e9d1bc6cbd28dc92ed443d810aa40c (patch)
tree588ddb91b4507985fef4adaff8029bd5221366fb /cmake
parente9931f16dbafacf2b2ae29fb681f83c7811ab776 (diff)
downloadnavit-2ae3c4ba85e9d1bc6cbd28dc92ed443d810aa40c.tar.gz
Applying patch from trac-832
Diffstat (limited to 'cmake')
-rw-r--r--cmake/navit_macros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/navit_macros.cmake b/cmake/navit_macros.cmake
index d1b4359fb..3baf5c9ed 100644
--- a/cmake/navit_macros.cmake
+++ b/cmake/navit_macros.cmake
@@ -15,9 +15,9 @@ macro(set_with_reason VARIABLE REASON ENABLE)
if (DEFINED ${VARIABLE}_REASON AND NOT ${VARIABLE}_REASON STREQUAL "User defined")
set(${VARIABLE} ${ENABLE} CACHE BOOL "feature switch" FORCE)
set(${VARIABLE}_REASON ${REASON})
- string(REPLACE "/" "_" VARIABLE_NAMES ${VARIABLE})
- set(${VARIABLE_NAMES}_LIBS ${ARGN})
endif()
+ string(REPLACE "/" "_" VARIABLE_NAMES ${VARIABLE})
+ set(${VARIABLE_NAMES}_LIBS ${ARGN})
set(${VARIABLE}_AUTODETECTED_VALUE ${ENABLE} CACHE INTERNAL "value autodetected by build script")
endmacro()