WSL/SLF GitLab Repository

Commit d239580c authored by Mathias Bavay's avatar Mathias Bavay
Browse files

More robust finding of MeteoIO that properly works on WinXP

parent 1f0bbcc2
......@@ -67,8 +67,12 @@ ENDIF(WIN32)
#build METEOIO_ROOT so we can provide a hint for searching for the header file
GET_FILENAME_COMPONENT(meteoio_libs_root ${METEOIO_LIBRARY} PATH)
SET(METEOIO_ROOT "${meteoio_libs_root}/../")
STRING(REPLACE " " "\\ " METEOIO_ROOT ${METEOIO_ROOT})
IF(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
GET_FILENAME_COMPONENT(METEOIO_ROOT ${meteoio_libs_root} DIRECTORY)
ELSE(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
SET(METEOIO_ROOT "${meteoio_libs_root}/../")
STRING(REPLACE " " "\\ " METEOIO_ROOT ${METEOIO_ROOT})
ENDIF(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
# locate main header file
FIND_PATH(METEOIO_INCLUDE_DIR
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment