aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/pythoncore
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/pythoncore')
-rw-r--r--src/modules/pythoncore/CMakeLists.txt15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/modules/pythoncore/CMakeLists.txt b/src/modules/pythoncore/CMakeLists.txt
index 2d0036d27..42d5411a7 100644
--- a/src/modules/pythoncore/CMakeLists.txt
+++ b/src/modules/pythoncore/CMakeLists.txt
@@ -14,19 +14,4 @@ QT4_WRAP_CPP(kvipythoncore_MOC_SRCS ${kvipythoncore_MOC_HDRS})
SET(kvi_module_name kvipythoncore)
-IF(COMPILE_PYTHON_SUPPORT)
- EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE}-config --cflags
- OUTPUT_VARIABLE PYTHON_COMPILE_FLAGS
- )
-
- # Remove new line characters
- STRING(REGEX REPLACE "(\r?\n)+$" "" PYTHON_COMPILE_FLAGS "${PYTHON_COMPILE_FLAGS}")
- # Remove leading and trailing spaces (string strip)
- STRING(REGEX REPLACE "(^( )+|( )+$)" "" PYTHON_COMPILE_FLAGS "${PYTHON_COMPILE_FLAGS}")
-ENDIF()
-
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
-
-IF(COMPILE_PYTHON_SUPPORT)
- SET_TARGET_PROPERTIES(${kvi_module_name} PROPERTIES COMPILE_FLAGS "${PYTHON_COMPILE_FLAGS}")
-ENDIF()