From 794d2608f15155ceba9b6a201fccffbc40d68d45 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Mon, 19 Jul 2010 14:22:51 -0300 Subject: Use correct python library in debug mode. Reviewer: Marcelo Lira Luciano Wolf --- libshiboken/CMakeLists.txt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libshiboken/CMakeLists.txt') diff --git a/libshiboken/CMakeLists.txt b/libshiboken/CMakeLists.txt index 4571a4cf7..d39afc0f7 100644 --- a/libshiboken/CMakeLists.txt +++ b/libshiboken/CMakeLists.txt @@ -24,16 +24,6 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/ShibokenConfigVersion.cmake.in" configure_file("${CMAKE_CURRENT_SOURCE_DIR}/shiboken.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/shiboken.pc" @ONLY) -# 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 (PY_DEBUG) - add_definitions("-DPy_DEBUG") -endif() - set(libshiboken_SRC basewrapper.cpp helper.cpp @@ -47,8 +37,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${SPARSEHASH_INCLUDE_PATH}) add_library(libshiboken SHARED ${libshiboken_SRC}) set_property(TARGET libshiboken PROPERTY PREFIX "") -target_link_libraries(libshiboken - ${PYTHON_LIBRARIES}) +target_link_libraries(libshiboken ${SBK_PYTHON_LIBRARIES}) set_target_properties(libshiboken PROPERTIES VERSION ${libshiboken_VERSION} SOVERSION ${libshiboken_SOVERSION}) install(FILES -- cgit v1.2.3