From: bruneton Date: Tue, 27 Aug 2013 09:14:03 +0000 (+0000) Subject: CMake: minor bug: Python_FOUND flag was not set at all. X-Git-Tag: begin_agr_portmanager_branch_131004~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5665192e75adf84314960aa20e0b217b559b7b3a;p=modules%2Fkernel.git CMake: minor bug: Python_FOUND flag was not set at all. --- diff --git a/salome_adm/cmake_files/FindSalomePython.cmake b/salome_adm/cmake_files/FindSalomePython.cmake index bdc75473f..c74ae64bd 100644 --- a/salome_adm/cmake_files/FindSalomePython.cmake +++ b/salome_adm/cmake_files/FindSalomePython.cmake @@ -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()