]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #830 - cmake must fail if SolveSpace has not been found
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 11 Sep 2015 14:40:23 +0000 (17:40 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 11 Sep 2015 14:40:23 +0000 (17:40 +0300)
CMakeCommon/FindSolveSpace.cmake

index 426b46c3ced83c1f1d5050fd9e66e199647b9bd2..6e32fc802eca6a884bab53d9809150bdf3957f23 100644 (file)
@@ -9,19 +9,19 @@
 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 #=============================================================================
 
-SET(_SOLVESPACE_PATHS $ENV{SOLVESPACE_ROOT_DIR})
-
 IF(NOT SOLVESPACE_FIND_QUIETLY)
-    MESSAGE(STATUS "Try to find SolveSpace at ${_SOLVESPACE_PATHS}...")
+  MESSAGE(STATUS "Try to find SolveSpace at $ENV{SOLVESPACE_ROOT_DIR}...")
 ENDIF()
 
 FIND_PATH(SOLVESPACE_INCLUDE_DIR NAMES slvs.h
-          PATHS ${_SOLVESPACE_PATHS}
-          PATH_SUFFIXES include)
+  HINTS ENV SOLVESPACE_ROOT_DIR
+  PATH_SUFFIXES include
+)
 
 FIND_LIBRARY(SOLVESPACE_LIBRARY NAMES slvs
-             PATHS ${_SOLVESPACE_PATHS}
-             PATH_SUFFIXES lib)
+  HINTS ENV SOLVESPACE_ROOT_DIR
+  PATH_SUFFIXES lib
+)
 
 SET(SOLVESPACE_INCLUDE_DIRS ${SOLVESPACE_INCLUDE_DIR})
 SET(SOLVESPACE_LIBRARIES ${SOLVESPACE_LIBRARY})