]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
CMake correction to use debug information just if the corresponded libraries are...
authornds <nds@opencascade.com>
Tue, 13 Dec 2016 13:58:06 +0000 (16:58 +0300)
committernds <nds@opencascade.com>
Tue, 13 Dec 2016 13:58:06 +0000 (16:58 +0300)
CMakeCommon/FindDFBrowser.cmake
CMakeCommon/FindVInspector.cmake
src/XGUI/CMakeLists.txt

index 2cf5e9a34f54ec5cfd17d102a113fbfc23fbd758..46166288ce521c0f26ab53715b6c40d385b3dec3 100644 (file)
@@ -19,9 +19,11 @@ IF(EXISTS ${DFBROWSER_ROOT_DIR})
   SET(DFBROWSER_LIB_DIR "${DFBROWSER_ROOT_DIR}/lib")
 
   FIND_LIBRARY(DFBrowserAPI DFBrowserAPI "${DFBROWSER_LIB_DIR}")
-  SET(DFBrowserAPI ${DFBrowserAPI})
+  IF(DFBrowserAPI)
+    SET(DFBrowserAPI ${DFBrowserAPI})
+    MESSAGE(STATUS "DFBrowser found at ${DFBROWSER_ROOT_DIR}")
+    MESSAGE(STATUS "DFBrowser include dir at ${DFBROWSER_INCLUDE_DIR}")
+    MESSAGE(STATUS "DFBrowser lib dir at ${DFBROWSER_LIB_DIR}")
+  ENDIF(DFBrowserAPI)
 
-  MESSAGE(STATUS "DFBrowser found at ${DFBROWSER_ROOT_DIR}")
-  MESSAGE(STATUS "DFBrowser include dir at ${DFBROWSER_INCLUDE_DIR}")
-  MESSAGE(STATUS "DFBrowser lib dir at ${DFBROWSER_LIB_DIR}")
 ENDIF(EXISTS ${DFBROWSER_ROOT_DIR})
index f88ff79dc5b65fd7292d133766bd7e99d4ca9e7c..f548c46dffe09b1e6c1b60cd91b6a215ffd055a5 100644 (file)
@@ -19,9 +19,11 @@ IF(EXISTS ${VINSPECTOR_ROOT_DIR})
   SET(VINSPECTOR_LIB_DIR "${VINSPECTOR_ROOT_DIR}/lib")
 
   FIND_LIBRARY(VInspectorAPI VInspectorAPI "${VINSPECTOR_LIB_DIR}")
-  SET(VInspectorAPI ${VInspectorAPI})
+  IF(VInspectorAPI)
+    SET(VInspectorAPI ${VInspectorAPI})
+    MESSAGE(STATUS "VInspector found at ${VINSPECTOR_ROOT_DIR}")
+    MESSAGE(STATUS "VInspector include dir at ${VINSPECTOR_INCLUDE_DIR}")
+    MESSAGE(STATUS "VInspector lib dir at ${VINSPECTOR_LIB_DIR}")
+  ENDIF(VInspectorAPI)
 
-  MESSAGE(STATUS "VInspector found at ${VINSPECTOR_ROOT_DIR}")
-  MESSAGE(STATUS "VInspector include dir at ${VINSPECTOR_INCLUDE_DIR}")
-  MESSAGE(STATUS "VInspector lib dir at ${VINSPECTOR_LIB_DIR}")
 ENDIF(EXISTS ${VINSPECTOR_ROOT_DIR})
index c140d618cc70d847e0187b08114df319cdfef152..7adccd4ebf73dbf309d2502227ffc1bcfa0bb558 100644 (file)
@@ -129,7 +129,8 @@ SET(PROJECT_INCLUDES
     ${CAS_INCLUDE_DIRS}
     ${SUIT_INCLUDE})
 
-IF(EXISTS ${VINSPECTOR_ROOT_DIR})
+IF(${VInspectorAPI})
+    message("VINSPECTOR is defined")
     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${VInspectorAPI})
     SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${VINSPECTOR_INCLUDE_DIR})
 
@@ -140,7 +141,8 @@ IF(NOT ${HAVE_SALOME})
     SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${APPELEMENTS_INCLUDE_DIR})
 ENDIF(NOT ${HAVE_SALOME})
 
-IF(EXISTS ${DFBROWSER_ROOT_DIR})
+IF(${DFBrowserAPI})
+    message("DFBROWSER is defined")
     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${DFBrowserAPI})
     SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${DFBROWSER_INCLUDE_DIR})