mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-12 02:10:34 +00:00
Buiding fixes
Fixed building option when gflags is installed and it is older than v2.1.2 (_e.g._, in CentOS 7) Fixed static linking of the matio library when downloaded and built by CMake
This commit is contained in:
parent
fd41eef1e0
commit
e05f6af601
@ -1192,7 +1192,9 @@ endif()
|
|||||||
# gflags - https://github.com/gflags/gflags
|
# gflags - https://github.com/gflags/gflags
|
||||||
################################################################################
|
################################################################################
|
||||||
set(LOCAL_GFLAGS FALSE)
|
set(LOCAL_GFLAGS FALSE)
|
||||||
find_package(GFLAGS)
|
if(NOT ENABLE_OWN_GLOG)
|
||||||
|
find_package(GFLAGS)
|
||||||
|
endif()
|
||||||
set_package_properties(GFLAGS PROPERTIES
|
set_package_properties(GFLAGS PROPERTIES
|
||||||
PURPOSE "Used for commandline flags management."
|
PURPOSE "Used for commandline flags management."
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
@ -2076,20 +2078,20 @@ if(NOT MATIO_FOUND OR MATIO_VERSION_STRING VERSION_LESS ${GNSSSDR_MATIO_MIN_VERS
|
|||||||
UPDATE_COMMAND ${CMAKE_BINARY_DIR}/thirdparty/matio/matio-${GNSSSDR_MATIO_LOCAL_VERSION}/autogen.sh
|
UPDATE_COMMAND ${CMAKE_BINARY_DIR}/thirdparty/matio/matio-${GNSSSDR_MATIO_LOCAL_VERSION}/autogen.sh
|
||||||
CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/thirdparty/matio/matio-${GNSSSDR_MATIO_LOCAL_VERSION}/configure --with-hdf5=${HDF5_BASE_DIR} --with-zlib=${ZLIB_BASE_DIR} --with-default-file-ver=7.3 --enable-mat73=yes --prefix=<INSTALL_DIR>
|
CONFIGURE_COMMAND ${CMAKE_BINARY_DIR}/thirdparty/matio/matio-${GNSSSDR_MATIO_LOCAL_VERSION}/configure --with-hdf5=${HDF5_BASE_DIR} --with-zlib=${ZLIB_BASE_DIR} --with-default-file-ver=7.3 --enable-mat73=yes --prefix=<INSTALL_DIR>
|
||||||
BUILD_COMMAND ${MATIO_MAKE_PROGRAM}
|
BUILD_COMMAND ${MATIO_MAKE_PROGRAM}
|
||||||
BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/matio/lib/${CMAKE_FIND_LIBRARY_PREFIXES}matio${CMAKE_SHARED_LIBRARY_SUFFIX}
|
BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/matio/lib/${CMAKE_FIND_LIBRARY_PREFIXES}matio${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
set(MATIO_LOCAL TRUE)
|
set(MATIO_LOCAL TRUE)
|
||||||
if(NOT TARGET Matio::matio)
|
if(NOT TARGET Matio::matio)
|
||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/matio/include)
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/matio/include)
|
||||||
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/matio/lib)
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/matio/lib)
|
||||||
add_library(Matio::matio SHARED IMPORTED)
|
add_library(Matio::matio STATIC IMPORTED)
|
||||||
add_dependencies(Matio::matio matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
add_dependencies(Matio::matio matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
||||||
set_target_properties(Matio::matio PROPERTIES
|
set_target_properties(Matio::matio PROPERTIES
|
||||||
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
|
||||||
IMPORTED_LOCATION "${CMAKE_BINARY_DIR}/matio/lib/${CMAKE_FIND_LIBRARY_PREFIXES}matio${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
IMPORTED_LOCATION "${CMAKE_BINARY_DIR}/matio/lib/${CMAKE_FIND_LIBRARY_PREFIXES}matio${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR}/matio/include
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR}/matio/include
|
||||||
INTERFACE_LINK_LIBRARIES ${CMAKE_BINARY_DIR}/matio/lib/${CMAKE_FIND_LIBRARY_PREFIXES}matio${CMAKE_SHARED_LIBRARY_SUFFIX}
|
INTERFACE_LINK_LIBRARIES "${CMAKE_BINARY_DIR}/matio/lib/${CMAKE_FIND_LIBRARY_PREFIXES}matio${CMAKE_STATIC_LIBRARY_SUFFIX};${HDF5_LIBRARIES}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
@ -15,6 +15,12 @@ SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades <carles.fernandez@cttc
|
|||||||
- Faster `SignalConditioner` block when its implementation is set to
|
- Faster `SignalConditioner` block when its implementation is set to
|
||||||
`Pass_Through`.
|
`Pass_Through`.
|
||||||
|
|
||||||
|
### Improvements in Portability:
|
||||||
|
|
||||||
|
- Fixed `-DENABLE_OWN_GLOG=ON` building option when gflags is installed and it
|
||||||
|
is older than v2.1.2 (_e.g._, in CentOS 7).
|
||||||
|
- Fixed static linking of the matio library when downloaded and built by CMake.
|
||||||
|
|
||||||
### Improvements in Usability:
|
### Improvements in Usability:
|
||||||
|
|
||||||
- Fixed a bug when enabling pseudorange carrier smoothing in other bands than
|
- Fixed a bug when enabling pseudorange carrier smoothing in other bands than
|
||||||
|
Loading…
Reference in New Issue
Block a user