From 60aea02724cc1fd73c5cce3f981c0b3a2807eb44 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sun, 28 Jan 2018 16:03:40 +0100 Subject: CMake: keep defines in ConfigChecks.cmake --- CMakeLists.txt | 7 ------- CMakeScripts/ConfigChecks.cmake | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b25b8a39d..e175b374e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,13 +134,6 @@ endif() # ----------------------------------------------------------------------------- -# ----------------------------------------------------------------------------- -# Relocatable Binary -# ----------------------------------------------------------------------------- - -if (ENABLE_BINRELOC) - add_definitions(-DENABLE_BINRELOC) -endif() # ----------------------------------------------------------------------------- # Subdirectories diff --git a/CMakeScripts/ConfigChecks.cmake b/CMakeScripts/ConfigChecks.cmake index 04c077026..ef11542b0 100644 --- a/CMakeScripts/ConfigChecks.cmake +++ b/CMakeScripts/ConfigChecks.cmake @@ -50,6 +50,11 @@ if(HAVE_CAIRO_PDF) set(RENDER_WITH_PANGO_CAIRO TRUE) endif() +# Relocatable Binary +if (ENABLE_BINRELOC) + add_definitions(-DENABLE_BINRELOC) +endif() + # Create the configuration files config.h in the binary root dir configure_file(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/include/config.h) add_definitions(-DHAVE_CONFIG_H) -- cgit v1.2.3