Skip to content
Snippets Groups Projects
Commit 12a38744 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix find include dirs

parent d5cb5a8b
No related branches found
No related tags found
1 merge request!23after cmake refactor
Pipeline #10743 passed
FIND_PATH(
gnss_utils_INCLUDE_DIRS
NAMES gnss_utils.h
PATHS /usr/local/include/iri-algorithms/gnss_utils /usr/local/lib/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)
NAMES gnss_utils/gnss_utils.h
PATHS /usr/local/include/iri-algorithms)
IF(gnss_utils_INCLUDE_DIRS)
MESSAGE("Found gnss_utils include dirs: ${gnss_utils_INCLUDE_DIRS}")
ELSE(gnss_utils_INCLUDE_DIRS)
......
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