1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-10-24 20:17:39 +00:00

Update GPSTK version to 2.12

Fix ENABLE_OWN_GPSTK option if GPSTK was already found
This commit is contained in:
Carles Fernandez
2019-08-20 23:02:48 +02:00
parent 6c3af29485
commit 05ec821998
3 changed files with 15 additions and 15 deletions

View File

@@ -79,9 +79,7 @@ set_package_properties(GPSTK PROPERTIES
URL "http://www.gpstk.org"
)
mark_as_advanced(GPSTK_LIBRARY GPSTK_INCLUDE_DIR)
if(GPSTK_FOUND AND NOT TARGET Gpstk::gpstk)
if(GPSTK_FOUND AND NOT ENABLE_OWN_GPSTK AND NOT TARGET Gpstk::gpstk)
add_library(Gpstk::gpstk SHARED IMPORTED)
set_target_properties(Gpstk::gpstk PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
@@ -90,3 +88,5 @@ if(GPSTK_FOUND AND NOT TARGET Gpstk::gpstk)
INTERFACE_LINK_LIBRARIES "${GPSTK_LIBRARY}"
)
endif()
mark_as_advanced(GPSTK_LIBRARY GPSTK_INCLUDE_DIR)