summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt7
-rw-r--r--CMakeScripts/ConfigChecks.cmake5
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)