Salome HOME
Minor tweaks for windows configuration: removed "pthreadVSE".
[tools/libbatch.git] / CMakeModules / FindLibbatchPython.cmake
index d460841863c7fc3749da2d603c67bedba559fb10..e62d008aa3f821eb2fe4faf09d75c7ad224006fe 100644 (file)
@@ -101,7 +101,9 @@ IF (LIBBATCHPYTHON_FOUND)
   # For Python this is the grand-parent of the
   # include directory:
   GET_FILENAME_COMPONENT(_tmp_ROOT_DIR "${PYTHON_INCLUDE_DIR}" PATH)
-  GET_FILENAME_COMPONENT(_tmp_ROOT_DIR "${_tmp_ROOT_DIR}" PATH)
+  IF(NOT WIN32)
+    GET_FILENAME_COMPONENT(_tmp_ROOT_DIR "${_tmp_ROOT_DIR}" PATH)
+  ENDIF()
 
   # 4. Warn if CMake found something not located under ENV(XYZ_ROOT_DIR)
   IF(DEFINED ENV{PYTHON_ROOT_DIR})