From 03de938d2e1f5e9ca3f73e9c6e9509e81db4e718 Mon Sep 17 00:00:00 2001 From: ana Date: Wed, 27 Nov 2013 08:52:39 +0000 Subject: [PATCH] Win32/Win64 compatibility --- CMakeModules/FindLibbatchPython.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeModules/FindLibbatchPython.cmake b/CMakeModules/FindLibbatchPython.cmake index 11078e8..b57dc29 100644 --- 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) -IF(WINDOWS) +IF(WIN32) 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) +ENDIF(WIN32) 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) - SET(CMAKE_PREFIX_PATH "${PYTHON_ROOT_DIR}") + LIST(APPEND CMAKE_PREFIX_PATH "${PYTHON_ROOT_DIR}") ELSE() MESSAGE(STATUS "Found Python in CONFIG mode!") ENDIF() -- 2.39.2