mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fix linking of GPSTk
This commit is contained in:
parent
54b2d718fc
commit
5f7e1e21f6
@ -58,9 +58,11 @@ if("${ARMADILLO_VERSION_STRING}" VERSION_GREATER "9.800" OR (NOT ARMADILLO_FOUND
|
|||||||
if(NOT MATIO_FOUND OR MATIO_VERSION_STRING VERSION_LESS ${GNSSSDR_MATIO_MIN_VERSION})
|
if(NOT MATIO_FOUND OR MATIO_VERSION_STRING VERSION_LESS ${GNSSSDR_MATIO_MIN_VERSION})
|
||||||
add_dependencies(obsdiff matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
add_dependencies(obsdiff matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
||||||
endif()
|
endif()
|
||||||
file(MAKE_DIRECTORY ${GPSTK_INCLUDE_DIR}/gpstk)
|
|
||||||
if(NOT TARGET Gpstk::gpstk)
|
if(NOT TARGET Gpstk::gpstk)
|
||||||
|
file(MAKE_DIRECTORY ${GPSTK_INCLUDE_DIR}/gpstk)
|
||||||
add_library(Gpstk::gpstk STATIC IMPORTED)
|
add_library(Gpstk::gpstk STATIC IMPORTED)
|
||||||
|
add_dependencies(Gpstk::gpstk gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION})
|
||||||
set_target_properties(Gpstk::gpstk PROPERTIES
|
set_target_properties(Gpstk::gpstk PROPERTIES
|
||||||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
IMPORTED_LOCATION "${GPSTK_LIBRARY}"
|
IMPORTED_LOCATION "${GPSTK_LIBRARY}"
|
||||||
|
Loading…
Reference in New Issue
Block a user