Commit d73ec0b4 authored by Langella Olivier's avatar Langella Olivier
Browse files

fix for Debian Bug report logs - #976512

parent 5be71ea5
#sudo apt install libalglib-dev
# Look for the necessary header
set(Alglib_INCLUDE_DIR /usr/include/libalglib)
mark_as_advanced(Alglib_INCLUDE_DIR)
set(Alglib_FOUND FALSE)
# Look for the necessary library
set(Alglib_LIBRARY /usr/lib/x86_64-linux-gnu/libalglib.so)
mark_as_advanced(Alglib_LIBRARY)
find_path(Alglib_INCLUDE_DIR libalglib/solvers.h
PATHS /usr/local/include /usr/include
PATH_SUFFIXES libalglib ENV PATH)
set(Alglib_FOUND 1)
find_library(Alglib_LIBRARY NAMES alglib)
if(Alglib_INCLUDE_DIR AND Alglib_LIBRARY)
mark_as_advanced(Alglib_INCLUDE_DIR)
mark_as_advanced(Alglib_LIBRARY)
message(STATUS "~~~~~~~~~~~~~ ${_LIBRARY} ~~~~~~~~~~~~~~~")
set(Alglib_FOUND TRUE)
endif()
if(Alglib_FOUND)
set(Alglib_INCLUDE_DIRS ${Alglib_INCLUDE_DIR})
......@@ -19,3 +33,14 @@ set(Alglib_FOUND 1)
IMPORTED_LOCATION "${Alglib_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Alglib_INCLUDE_DIR}")
endif()
else()
if(Alglib_FIND_REQUIRED)
message(FATAL_ERROR "Could not find Alglib_LIBRARY. Please do specify the
Alglib_INCLUDE_DIRS and Alglib_LIBRARIES variables using cmake!")
endif()
endif()
#sudo apt install libzstd-dev
# Look for the necessary header
set(Zstd_INCLUDE_DIR /usr/include)
mark_as_advanced(Zstd_INCLUDE_DIR)
# Look for the necessary library
set(Zstd_LIBRARY /usr/lib/x86_64-linux-gnu/libzstd.so)
mark_as_advanced(Zstd_LIBRARY)
set(Zstd_FOUND FALSE)
set(Zstd_FOUND 1)
find_path(Zstd_INCLUDE_DIR zstd.h
PATHS /usr/local/include /usr/include
PATH_SUFFIXES libzstd ENV PATH)
find_library(Zstd_LIBRARY NAMES zstd)
if(Zstd_INCLUDE_DIR AND Zstd_LIBRARY)
mark_as_advanced(Zstd_INCLUDE_DIR)
mark_as_advanced(Zstd_LIBRARY)
message(STATUS "~~~~~~~~~~~~~ ${_LIBRARY} ~~~~~~~~~~~~~~~")
set(Zstd_FOUND TRUE)
endif()
if(Zstd_FOUND)
set(Zstd_INCLUDE_DIRS ${Zstd_INCLUDE_DIR})
......@@ -19,3 +34,14 @@ set(Zstd_FOUND 1)
IMPORTED_LOCATION "${Zstd_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Zstd_INCLUDE_DIR}")
endif()
else()
if(Zstd_FIND_REQUIRED)
message(FATAL_ERROR "Could not find Zstd_LIBRARY. Please do specify the
Zstd_INCLUDE_DIR and Zstd_LIBRARY variables using cmake!")
endif()
endif()
Markdown is supported
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