diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-23 17:43:51 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:06 -0300 |
commit | 156ecae3849463738a3a133b02cc085800ef996f (patch) | |
tree | 82e5fc7cb79abb491f6f6e5882b6bd319b313bba /data | |
parent | 4c3b1422944520431d5b900b1c0de7cede344517 (diff) |
Fix last commit, compre was a fragile and stupid solution.
Diffstat (limited to 'data')
-rw-r--r-- | data/ShibokenConfig.cmake.in | 3 | ||||
-rw-r--r-- | data/shiboken.pc.in | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/data/ShibokenConfig.cmake.in b/data/ShibokenConfig.cmake.in index 24f23abbb..c7abc8318 100644 --- a/data/ShibokenConfig.cmake.in +++ b/data/ShibokenConfig.cmake.in @@ -21,7 +21,8 @@ message(STATUS "libshiboken built for @SHIBOKEN_BUILD_TYPE@") # We don't use just "if (@AVOID_PROTECTED_HACK@)" to avoid require all users to turn on the cmake policy CMP0012 # for more info type: cmake --help-policy CMP0012 -if ("@AVOID_PROTECTED_HACK@" STREQUAL "TRUE") +set(SHIBOKEN_AVOID_PROTECTED_HACK @AVOID_PROTECTED_HACK@) +if (SHIBOKEN_AVOID_PROTECTED_HACK) add_definitions(-DAVOID_PROTECTED_HACK) message(STATUS "Avoiding protected hack!") endif() diff --git a/data/shiboken.pc.in b/data/shiboken.pc.in index 9a119b875..2a5e33d86 100644 --- a/data/shiboken.pc.in +++ b/data/shiboken.pc.in @@ -5,6 +5,7 @@ includedir=@CMAKE_INSTALL_PREFIX@/include/shiboken generator_location=@CMAKE_INSTALL_PREFIX@/bin/shiboken python_interpreter=@PYTHON_EXECUTABLE@ python_include_dir=@PYTHON_INCLUDE_DIR@ +avoid_protected_hack=@AVOID_PROTECTED_HACK@ Name: shiboken Description: Support library for Python bindings created with Shiboken generator. |