## 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})