Set path prefix length in CMakeListsGlobal
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Wed, 23 May 2018 07:42:15 +0000 (09:42 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Wed, 23 May 2018 07:42:15 +0000 (09:42 +0200)
CMakeLists.txt
CMakeListsGlobal.cmake

index 02a20f4..ea5182d 100644 (file)
@@ -90,10 +90,6 @@ ADD_CUSTOM_TARGET(zip    COMMAND ${CMAKE_COMMAND}
 #### Compile targets ####
 #########################
 
-# add define for length of base path
-string(LENGTH "${CMAKE_SOURCE_DIR}/" BASELENGTH)
-add_definitions(-DBASEPATH_LENGTH=${BASELENGTH})
-
 # include build helper
 include (cmake/declare_library.cmake)
 
index 4168059..b0f2763 100644 (file)
@@ -30,6 +30,10 @@ include_directories(${CMAKE_BINARY_DIR})
 #### API configuration ####
 ###########################
 
+# add define for length of base path
+string(LENGTH "${CMAKE_SOURCE_DIR}/" BASELENGTH)
+add_definitions(-DBASEPATH_LENGTH=${BASELENGTH})
+
 # set cached variables
 include (${CMAKE_CURRENT_LIST_DIR}/cmake/lib_config.cmake)