From f667129ed9b663dc72158433aff405c23b93d219 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 3 Mar 2019 23:58:33 +0100 Subject: CMake: simplify check if library was found Signed-off-by: Rolf Eike Beer --- smtk-import/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtk-import/CMakeLists.txt b/smtk-import/CMakeLists.txt index dbbb90d7b..500a3f6a2 100644 --- a/smtk-import/CMakeLists.txt +++ b/smtk-import/CMakeLists.txt @@ -75,7 +75,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin" ) endif() -if(NOT DEFINED SSRF_CORELIB OR SSRF_CORELIB STREQUAL "SSRF_CORELIB-NOTFOUND") +if(NOT SSRF_CORELIB) message(FATAL_ERROR " libsubsurface_corelib.a not found. Did you build Subsurface previously?") else() message(STATUS " Found ${SSRF_CORELIB}") -- cgit v1.2.3-70-g09d2