mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
cmake: use DEFINED instead of comparing to ""
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4309ab4a16
commit
0a4444930e
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ if(NOT DEFINED LIBGIT2DEVEL)
|
||||||
ELSE()
|
ELSE()
|
||||||
include_directories(${LIBGIT2DEVEL}/include)
|
include_directories(${LIBGIT2DEVEL}/include)
|
||||||
link_directories(${LIBGIT2DEVEL}/build)
|
link_directories(${LIBGIT2DEVEL}/build)
|
||||||
if(LIBGIT2STATIC STREQUAL "")
|
if(NOT DEFINED LIBGIT2STATIC)
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lgit2 -lssl -lcrypto)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lgit2 -lssl -lcrypto)
|
||||||
ELSE()
|
ELSE()
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libgit2.a -lssl -lcrypto)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libgit2.a -lssl -lcrypto)
|
||||||
|
@ -41,8 +41,8 @@ IF(DEFINED LIBDCDEVEL)
|
||||||
cmake_policy(SET CMP0015 OLD)
|
cmake_policy(SET CMP0015 OLD)
|
||||||
include_directories(${LIBDCDEVEL}/include )
|
include_directories(${LIBDCDEVEL}/include )
|
||||||
link_directories(${LIBDCDEVEL}/src/.libs)
|
link_directories(${LIBDCDEVEL}/src/.libs)
|
||||||
if(LIBDCSTATIC STREQUAL "")
|
if(NOT DEFINED LIBDCSTATIC)
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer -lusb-1.0)
|
||||||
ELSE()
|
ELSE()
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libdivecomputer.a -lusb-1.0)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libdivecomputer.a -lusb-1.0)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
Loading…
Reference in a new issue