summaryrefslogtreecommitdiffstats
path: root/data/ShibokenConfig.cmake.in
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-10-26 13:47:55 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-10-26 14:18:49 -0300
commit633cec7ee29bc130d6af9341a505a2b7377e755b (patch)
treee1c051a6fb47ea18e149ea3f04a79c8c66b74076 /data/ShibokenConfig.cmake.in
parent9d479c812d4e2e6fc427f96af4ce4f415c8eab0a (diff)
downloadshiboken-633cec7ee29bc130d6af9341a505a2b7377e755b.tar.gz
shiboken-633cec7ee29bc130d6af9341a505a2b7377e755b.tar.xz
shiboken-633cec7ee29bc130d6af9341a505a2b7377e755b.zip
Added the AVOID_PROTECTED_HACK option to the Shiboken cmake configuration file.
Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'data/ShibokenConfig.cmake.in')
-rw-r--r--data/ShibokenConfig.cmake.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/ShibokenConfig.cmake.in b/data/ShibokenConfig.cmake.in
index 2b9a3a09..2a4ffd4d 100644
--- a/data/ShibokenConfig.cmake.in
+++ b/data/ShibokenConfig.cmake.in
@@ -15,5 +15,11 @@ endif()
SET(SHIBOKEN_PYTHON_INTERPRETER "@PYTHON_EXECUTABLE@")
SET(SHIBOKEN_PYTHON_LIBRARIES "@SBK_PYTHON_LIBRARIES@")
SET(SHIBOKEN_BUILD_TYPE "@SHIBOKEN_BUILD_TYPE@")
-message("libshiboken built for @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)
+ add_definitions(-DAVOID_PROTECTED_HACK)
+ message(STATUS "Avoiding protected hack!")
+endif()