Salome HOME
projects
/
tools
/
libbatch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compilation SALOME on Windows
[tools/libbatch.git]
/
CMakeModules
/
FindLibbatchPython.cmake
diff --git
a/CMakeModules/FindLibbatchPython.cmake
b/CMakeModules/FindLibbatchPython.cmake
index d50087ad4533b0f6f2f72a572cebc23ffe0de6a6..11078e8347d22df27e307b94b0598f341fad20f9 100644
(file)
--- a/
CMakeModules/FindLibbatchPython.cmake
+++ b/
CMakeModules/FindLibbatchPython.cmake
@@
-37,6
+37,12
@@
ENDIF()
SET(PYTHON_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to Python directory (interpreter and libs)")
# 2. Find package - config mode first (i.e. looking for XYZ-config.cmake)
SET(PYTHON_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to Python directory (interpreter and libs)")
# 2. Find package - config mode first (i.e. looking for XYZ-config.cmake)
+IF(WINDOWS)
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET(PythonInterp_FIND_VERSION _d)
+ SET(PYTHON_DEFINITIONS "-DHAVE_DEBUG_PYTHON")
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ENDIF(WINDOWS)
IF(EXISTS "${PYTHON_ROOT_DIR}")
# Hope to find direclty a CMake config file there
SET(_CONF_DIR "${PYTHON_ROOT_DIR}/share/cmake")
IF(EXISTS "${PYTHON_ROOT_DIR}")
# Hope to find direclty a CMake config file there
SET(_CONF_DIR "${PYTHON_ROOT_DIR}/share/cmake")