mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Fix linking of GPSTk
This commit is contained in:
parent
0f7f163f89
commit
7b78d2e058
@ -1,10 +1,10 @@
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
SPDX-FileCopyrightText: 2020 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
||||
--- CMakeLists.txt 2020-10-25 10:06:26.000000000 +0100
|
||||
+++ CMakeLists.txt 2020-10-25 10:06:11.000000000 +0100
|
||||
--- CMakeLists.txt 2022-04-05 23:24:04.000000000 +0200
|
||||
+++ CMakeLists.txt 2022-04-05 23:29:02.000000000 +0200
|
||||
@@ -77,7 +77,16 @@
|
||||
|
||||
|
||||
|
||||
|
||||
include( BuildSetup.cmake )
|
||||
-
|
||||
+set(STADYN "STATIC")
|
||||
@ -20,3 +20,12 @@ SPDX-FileCopyrightText: 2020 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
||||
#============================================================
|
||||
# Core Library Target Files
|
||||
#============================================================
|
||||
@@ -160,7 +169,7 @@
|
||||
add_library( gpstk ${STADYN} ${GPSTK_SRC_FILES} ${GPSTK_INC_FILES} )
|
||||
|
||||
# GPSTk library install target
|
||||
-install( TARGETS gpstk DESTINATION "${CMAKE_INSTALL_LIBDIR}" EXPORT "${EXPORT_TARGETS_FILENAME}" )
|
||||
+install( TARGETS gpstk DESTINATION lib EXPORT "${EXPORT_TARGETS_FILENAME}" )
|
||||
|
||||
# GPSTk header file install target (whether it is version dependent changes based on user flag)
|
||||
install( FILES ${GPSTK_INC_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
|
||||
|
@ -10,7 +10,7 @@ if("${ARMADILLO_VERSION_STRING}" VERSION_GREATER "9.800" OR (NOT ARMADILLO_FOUND
|
||||
find_package(GPSTK QUIET)
|
||||
if(NOT GPSTK_FOUND OR ENABLE_OWN_GPSTK)
|
||||
include(GNUInstallDirs)
|
||||
set(GPSTK_LIBRARY ${CMAKE_BINARY_DIR}/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/${CMAKE_INSTALL_LIBDIR}/${CMAKE_FIND_LIBRARY_PREFIXES}gpstk${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
set(GPSTK_LIBRARY ${CMAKE_BINARY_DIR}/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/lib/${CMAKE_FIND_LIBRARY_PREFIXES}gpstk${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||
set(GPSTK_INCLUDE_DIR ${CMAKE_BINARY_DIR}/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/include)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user