Skip to content
Snippets Groups Projects
Commit 0614e737 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Renamed _INCLUDE_DIR -> _INCLUDE_DIRS & _LIBRARY -> _LIBRARIES

parent bf7b8ba2
No related branches found
No related tags found
1 merge request!281WIP: Resolve "autoconf: add state definition and dimension to yaml"
Pipeline #3577 passed
#edit the following line to add the librarie's header files #edit the following line to add the librarie's header files
FIND_PATH( FIND_PATH(
wolf_INCLUDE_DIR wolf_INCLUDE_DIRS
NAMES wolf.found NAMES wolf.found
PATHS /usr/local/include/iri-algorithms/wolf/plugin_core) PATHS /usr/local/include/iri-algorithms/wolf/plugin_core)
IF(wolf_INCLUDE_DIR) IF(wolf_INCLUDE_DIRS)
MESSAGE("Found wolf include dirs: ${wolf_INCLUDE_DIR}") MESSAGE("Found wolf include dirs: ${wolf_INCLUDE_DIRS}")
ELSE(wolf_INCLUDE_DIR) ELSE(wolf_INCLUDE_DIRS)
MESSAGE("Couldn't find wolf include dirs") MESSAGE("Couldn't find wolf include dirs")
ENDIF(wolf_INCLUDE_DIR) ENDIF(wolf_INCLUDE_DIRS)
FIND_LIBRARY( FIND_LIBRARY(
wolf_LIBRARY wolf_LIBRARIES
NAMES libwolf.so libwolf.dylib NAMES libwolf.so libwolf.dylib
PATHS /usr/local/lib/iri-algorithms) PATHS /usr/local/lib/iri-algorithms)
IF(wolf_LIBRARY) IF(wolf_LIBRARIES)
MESSAGE("Found wolf lib: ${wolf_LIBRARY}") MESSAGE("Found wolf lib: ${wolf_LIBRARIES}")
ELSE(wolf_LIBRARY) ELSE(wolf_LIBRARIES)
MESSAGE("Couldn't find wolf lib") MESSAGE("Couldn't find wolf lib")
ENDIF(wolf_LIBRARY) ENDIF(wolf_LIBRARIES)
IF (wolf_INCLUDE_DIR AND wolf_LIBRARY) IF (wolf_INCLUDE_DIRS AND wolf_LIBRARIES)
SET(wolf_FOUND TRUE) SET(wolf_FOUND TRUE)
ELSE(wolf_INCLUDE_DIR AND wolf_LIBRARY) ELSE(wolf_INCLUDE_DIRS AND wolf_LIBRARIES)
set(wolf_FOUND FALSE) set(wolf_FOUND FALSE)
ENDIF (wolf_INCLUDE_DIR AND wolf_LIBRARY) ENDIF (wolf_INCLUDE_DIRS AND wolf_LIBRARIES)
IF (wolf_FOUND) IF (wolf_FOUND)
IF (NOT wolf_FIND_QUIETLY) IF (NOT wolf_FIND_QUIETLY)
MESSAGE(STATUS "Found wolf: ${wolf_LIBRARY}") MESSAGE(STATUS "Found wolf: ${wolf_LIBRARIES}")
ENDIF (NOT wolf_FIND_QUIETLY) ENDIF (NOT wolf_FIND_QUIETLY)
ELSE (wolf_FOUND) ELSE (wolf_FOUND)
IF (wolf_FIND_REQUIRED) IF (wolf_FIND_REQUIRED)
...@@ -38,7 +38,7 @@ ENDIF (wolf_FOUND) ...@@ -38,7 +38,7 @@ ENDIF (wolf_FOUND)
macro(wolf_report_not_found REASON_MSG) macro(wolf_report_not_found REASON_MSG)
set(wolf_FOUND FALSE) set(wolf_FOUND FALSE)
unset(wolf_INCLUDE_DIR) unset(wolf_INCLUDE_DIRS)
unset(wolf_LIBRARIES) unset(wolf_LIBRARIES)
# Reset the CMake module path to its state when this script was called. # Reset the CMake module path to its state when this script was called.
......
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