diff options
author | Pino Toscano <pino@kde.org> | 2010-02-16 15:58:30 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2010-02-16 15:58:30 +0100 |
commit | 9e38082c3e571d035f0152d65661e5dd97fdd5d8 (patch) | |
tree | 250a91f6b659722529bb86ab9e9691a3e7204b63 | |
parent | eb03020893ed591c18817d75d427a1296cb1f233 (diff) |
[CMake] add the Win32-specific ENABLE_RELOCATABLE option, matching autotools' one
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | config.h.cmake | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d9f35a7..a7fece61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,11 @@ else(MSVC) option(WITH_FONTCONFIGURATION_WIN32 "Select win32 font configuration backend" OFF) option(WITH_FONTCONFIGURATION_FONTCONFIG "Select fontconfig font configuration backend" ON) endif(MSVC) +if(WIN32) + option(ENABLE_RELOCATABLE "Hardcode the poppler library location (on Windows)." ON) +else(WIN32) + set(ENABLE_RELOCATABLE OFF) +endif(WIN32) set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)") diff --git a/config.h.cmake b/config.h.cmake index 46b5d658..6792eff8 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -12,6 +12,9 @@ /* Build against libpng. */ #cmakedefine ENABLE_LIBPNG 1 +/* Do not hardcode the library location */ +#cmakedefine ENABLE_RELOCATABLE 1 + /* Use zlib instead of builtin zlib decoder. */ #cmakedefine ENABLE_ZLIB 1 |