summaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-21 13:45:46 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-21 14:51:23 -0300
commitabdb20e1a2f1032b2e467ab13b004ff5c9fbd1a0 (patch)
tree2c9bf30828083f3c135ac378e4c7a60e638442e7 /tests/CMakeLists.txt
parent06f1f83e0e8f39cde919bdb8a3441823bc5a5bb2 (diff)
downloadshiboken-abdb20e1a2f1032b2e467ab13b004ff5c9fbd1a0.tar.gz
shiboken-abdb20e1a2f1032b2e467ab13b004ff5c9fbd1a0.tar.xz
shiboken-abdb20e1a2f1032b2e467ab13b004ff5c9fbd1a0.zip
Move Python debug check to root Cmake file.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 48d9de48..e33305df 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,27 +1,6 @@
add_subdirectory(libsample)
add_subdirectory(libother)
-# Detect if the python libs were compiled in debug mode
-execute_process(
- COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; \\
- print sysconfig.get_config_var('Py_DEBUG')"
- OUTPUT_VARIABLE PY_DEBUG
- OUTPUT_STRIP_TRAILING_WHITESPACE)
-
-if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- if(NOT PYTHON_DEBUG_LIBRARIES)
- message(FATAL_ERROR "Python debug library not found. Try compile shiboken with -DCMAKE_BUILD_TYPE=Release")
- endif()
- if(NOT PY_DEBUG)
- message(WARNING "Compiling shiboken with debug enabled, but the python executable was not compiled with debug support.")
- else()
- add_definitions("-DPy_DEBUG")
- endif()
- set(SBK_PYTHON_LIBRARIES ${PYTHON_DEBUG_LIBRARIES})
-else()
- set(SBK_PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
- add_definitions("-DNDEBUG")
-endif()
add_subdirectory(samplebinding)
add_subdirectory(otherbinding)