summaryrefslogtreecommitdiffstats
path: root/data
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 18:46:37 -0200
commitdb4316721ebdccf3a782c4888fb01d4407c51b71 (patch)
tree67715d321bbb6212a165a49d97b5c91081cfd43d /data
parentfd81c050afca0ff3190e852062837be05017f00f (diff)
downloadshiboken-db4316721ebdccf3a782c4888fb01d4407c51b71.tar.gz
shiboken-db4316721ebdccf3a782c4888fb01d4407c51b71.tar.xz
shiboken-db4316721ebdccf3a782c4888fb01d4407c51b71.zip
Fix value of variable AVOID_PROTECTED_HACK.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'data')
-rw-r--r--data/ShibokenConfig.cmake.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/ShibokenConfig.cmake.in b/data/ShibokenConfig.cmake.in
index 50d14c9f..24f23abb 100644
--- a/data/ShibokenConfig.cmake.in
+++ b/data/ShibokenConfig.cmake.in
@@ -19,8 +19,9 @@ SET(SHIBOKEN_BUILD_TYPE "@SHIBOKEN_BUILD_TYPE@")
message(STATUS "libshiboken built for @SHIBOKEN_BUILD_TYPE@")
@SBK_ADD_PY_DEBUG_DEFINITION@
-option(AVOID_PROTECTED_HACK "Avoid protected hack on generated bindings." FALSE)
-if(AVOID_PROTECTED_HACK OR WIN32)
+# 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")
add_definitions(-DAVOID_PROTECTED_HACK)
message(STATUS "Avoiding protected hack!")
endif()