Commit 2aa50434 authored by Antonio Rojas's avatar Antonio Rojas

Fix build without libqalculate

parent b915e5b4
......@@ -51,11 +51,10 @@ else(QALCULATE_CFLAGS AND QALCULATE_LIBRARIES)
pkg_check_modules(_pc_QALCULATE libqalculate)
endif(QALCULATE_MIN_VERSION)
if(${_pc_QALCULATE_VERSION} VERSION_LESS 2.0.0)
pkg_check_modules(_pc_CLN cln)
endif()
if(_pc_QALCULATE_FOUND)
if(${_pc_QALCULATE_VERSION} VERSION_LESS 2.0.0)
pkg_check_modules(_pc_CLN cln)
endif()
set(QALCULATE_CFLAGS ${_pc_QALCULATE_CFLAGS})
endif()
......@@ -75,14 +74,16 @@ else(QALCULATE_CFLAGS AND QALCULATE_LIBRARIES)
${INCLUDE_INSTALL_DIR}
)
if(${_pc_QALCULATE_VERSION} VERSION_LESS 2.0.0)
find_library(CLN_LIBRARIES
NAMES
cln
PATHS
${_pc_CLN_LIBRARY_DIRS}
${LIB_INSTALL_DIR}
)
if(_pc_QALCULATE_FOUND)
if(${_pc_QALCULATE_VERSION} VERSION_LESS 2.0.0)
find_library(CLN_LIBRARIES
NAMES
cln
PATHS
${_pc_CLN_LIBRARY_DIRS}
${LIB_INSTALL_DIR}
)
endif()
endif()
else(NOT WIN32)
......
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