Skip to content
Snippets Groups Projects
Commit 5991f48e authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

fixed some more things cmake-related

parent 39b8f1d3
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
...@@ -2,6 +2,8 @@ FIND_PATH( ...@@ -2,6 +2,8 @@ FIND_PATH(
gnss_utils_INCLUDE_DIRS gnss_utils_INCLUDE_DIRS
NAMES gnss_utils.h NAMES gnss_utils.h
PATHS /usr/local/include/iri-algorithms/gnss_utils) PATHS /usr/local/include/iri-algorithms/gnss_utils)
#change INCLUDE_DIRS to its parent directory (to force includes with libname in front
get_filename_component(gnss_utils_INCLUDE_DIRS ${gnss_utils_INCLUDE_DIRS} DIRECTORY)
IF(gnss_utils_INCLUDE_DIRS) IF(gnss_utils_INCLUDE_DIRS)
MESSAGE("Found gnss_utils include dirs: ${gnss_utils_INCLUDE_DIRS}") MESSAGE("Found gnss_utils include dirs: ${gnss_utils_INCLUDE_DIRS}")
ELSE(gnss_utils_INCLUDE_DIRS) ELSE(gnss_utils_INCLUDE_DIRS)
...@@ -11,7 +13,7 @@ ENDIF(gnss_utils_INCLUDE_DIRS) ...@@ -11,7 +13,7 @@ ENDIF(gnss_utils_INCLUDE_DIRS)
FIND_LIBRARY( FIND_LIBRARY(
gnss_utils_LIBRARIES gnss_utils_LIBRARIES
NAMES libgnss_utils.so libgnss_utils.dylib NAMES libgnss_utils.so libgnss_utils.dylib
PATHS /usr/local/lib/gnss_utils) PATHS /usr/local/lib/iri-algorithms)
IF(gnss_utils_LIBRARIES) IF(gnss_utils_LIBRARIES)
MESSAGE("Found gnss_utils lib: ${gnss_utils_LIBRARIES}") MESSAGE("Found gnss_utils lib: ${gnss_utils_LIBRARIES}")
ELSE(gnss_utils_LIBRARIES) ELSE(gnss_utils_LIBRARIES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment