Salome HOME
projects
/
tools
/
libbatch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c3db5f7
)
Win32/Win64 compatibility
author
ana
<ana@opencascade.com>
Wed, 27 Nov 2013 08:52:39 +0000
(08:52 +0000)
committer
ana
<ana@opencascade.com>
Wed, 27 Nov 2013 08:52:39 +0000
(08:52 +0000)
CMakeModules/FindLibbatchPython.cmake
patch
|
blob
|
history
diff --git
a/CMakeModules/FindLibbatchPython.cmake
b/CMakeModules/FindLibbatchPython.cmake
index 11078e8347d22df27e307b94b0598f341fad20f9..b57dc29abd7858f65790590058c546849058b373 100644
(file)
--- a/
CMakeModules/FindLibbatchPython.cmake
+++ b/
CMakeModules/FindLibbatchPython.cmake
@@
-37,12
+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(WIN
DOWS
)
+IF(WIN
32
)
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
SET(PythonInterp_FIND_VERSION _d)
SET(PYTHON_DEFINITIONS "-DHAVE_DEBUG_PYTHON")
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
SET(PythonInterp_FIND_VERSION _d)
SET(PYTHON_DEFINITIONS "-DHAVE_DEBUG_PYTHON")
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
-ENDIF(WIN
DOWS
)
+ENDIF(WIN
32
)
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")
@@
-53,7
+53,7
@@
IF(EXISTS "${PYTHON_ROOT_DIR}")
MARK_AS_ADVANCED(Python_DIR)
IF (NOT PYTHON_FOUND)
MARK_AS_ADVANCED(Python_DIR)
IF (NOT PYTHON_FOUND)
-
SET(
CMAKE_PREFIX_PATH "${PYTHON_ROOT_DIR}")
+
LIST(APPEND
CMAKE_PREFIX_PATH "${PYTHON_ROOT_DIR}")
ELSE()
MESSAGE(STATUS "Found Python in CONFIG mode!")
ENDIF()
ELSE()
MESSAGE(STATUS "Found Python in CONFIG mode!")
ENDIF()