aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rolf Eike Beer <eike@sf-mail.de>2019-03-03 23:58:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-05 13:27:54 -0800
commitf667129ed9b663dc72158433aff405c23b93d219 (patch)
tree2a65de208e2f0a02f152ff681efc1d7f531047b2
parentf555fa787f54ca1fa23162fa0ade9addab387293 (diff)
downloadsubsurface-f667129ed9b663dc72158433aff405c23b93d219.tar.gz
CMake: simplify check if library was found
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
-rw-r--r--smtk-import/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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}")