summaryrefslogtreecommitdiffstats
path: root/data/ShibokenConfig.cmake.in
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-23 17:43:51 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-23 19:09:50 -0200
commit23de22f194dd1e5dfccce0cc03302af4f4018727 (patch)
tree9c3301802a3cf56277e1461b22c5970e2ee04cc7 /data/ShibokenConfig.cmake.in
parentdb4316721ebdccf3a782c4888fb01d4407c51b71 (diff)
downloadshiboken-23de22f194dd1e5dfccce0cc03302af4f4018727.tar.gz
shiboken-23de22f194dd1e5dfccce0cc03302af4f4018727.tar.xz
shiboken-23de22f194dd1e5dfccce0cc03302af4f4018727.zip
Fix last commit, compre was a fragile and stupid solution.
Diffstat (limited to 'data/ShibokenConfig.cmake.in')
-rw-r--r--data/ShibokenConfig.cmake.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/ShibokenConfig.cmake.in b/data/ShibokenConfig.cmake.in
index 24f23abb..c7abc831 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()