diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-06-05 03:43:26 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-06-19 21:41:50 +0300 |
commit | c1523147905345ed5f979b374f766ce42bc9be9b (patch) | |
tree | 1e0802a0fa66f7dc461a4d46a84aa98138b97ede | |
parent | b63b656c1fa2414fc9d24d3e52448f4d246f3697 (diff) | |
download | subsurface-c1523147905345ed5f979b374f766ce42bc9be9b.tar.gz |
Printing: fix "if" condition clause in cmake file
Check for NO_PRINTING instead of checking for NOT NO_PRINTING.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d1b59c849..e31822e0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,11 @@ endif() # setup Grantlee -if(NOT NO_PRINTING) +if(NO_PRINTING) + message(STATUS "building without printing support") + add_definitions(-DNO_PRINTING) + set(GRANTLEE_LIBRARIES "") +else() if(LIBGRANTLEE_FROM_PKGCONFIG) pkg_config_library(GRANTLEE libgrantlee REQUIRED) set(GRANTLEE_LIBRARIES "") @@ -113,12 +117,6 @@ if(NOT NO_PRINTING) ) endif() -if(NO_PRINTING) - message(STATUS "building without printing support") - add_definitions(-DNO_PRINTING) - set(GRANTLEE_LIBRARIES "") -endif() - set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${LIBDIVECOMPUTER_LIBRARIES} ${LIBGIT2_LIBRARIES} ${GRANTLEE_LIBRARIES} -lusb-1.0) # handle out of tree build correctly |