]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CMake: minor bug: Python_FOUND flag was not set at all.
authorbruneton <bruneton>
Tue, 27 Aug 2013 09:14:03 +0000 (09:14 +0000)
committerbruneton <bruneton>
Tue, 27 Aug 2013 09:14:03 +0000 (09:14 +0000)
salome_adm/cmake_files/FindSalomePython.cmake

index bdc75473f25b31bebdf03871af6ce73602e85a0e..c74ae64bda9b6637c74de0065af0668a740aee8d 100644 (file)
@@ -89,10 +89,14 @@ IF (PYTHONINTERP_FOUND)
   SET(SalomePython_FIND_VERSION "${_old_VERSION}")
 ENDIF()
 
-# Set the FOUND flag for SalomePython:
+# Set the FOUND flag for SalomePython and Python:
 SET(SALOMEPYTHON_FOUND FALSE)
 IF (_found1 AND PYTHONLIBS_FOUND)
   SET(SALOMEPYTHON_FOUND TRUE)
+  SET(Python_FOUND TRUE)
+ELSE()
+SET(SALOMEPYTHON_FOUND FALSE)
+  SET(Python_FOUND FALSE)
 ENDIF()
 
 IF (SALOMEPYTHON_FOUND)
@@ -147,7 +151,7 @@ IF (SALOMEPYTHON_FOUND)
 
   ## None here    
 ELSE()
-  MESSAGE(STATUS "Python was only partially (or not at all) found .")  
+  MESSAGE(STATUS "Python was only partially (or not at all) found .")
 ENDIF()