Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/FindQalculate.cmake
Context not available. | |||||
30 | pkg_check_modules(_pc_QALCULATE libqalculate) | 30 | pkg_check_modules(_pc_QALCULATE libqalculate) | ||
---|---|---|---|---|---|
31 | endif(QALCULATE_MIN_VERSION) | 31 | endif(QALCULATE_MIN_VERSION) | ||
32 | 32 | | |||
33 | pkg_check_modules(_pc_CLN cln) | 33 | if(${_pc_QALCULATE_VERSION} VERSION_LESS 2.0.0) | ||
34 | pkg_check_modules(_pc_CLN cln) | ||||
35 | endif() | ||||
34 | 36 | | |||
35 | if(_pc_QALCULATE_FOUND) | 37 | if(_pc_QALCULATE_FOUND) | ||
36 | set(QALCULATE_CFLAGS ${_pc_QALCULATE_CFLAGS}) | 38 | set(QALCULATE_CFLAGS ${_pc_QALCULATE_CFLAGS}) | ||
Context not available. | |||||
52 | ${INCLUDE_INSTALL_DIR} | 54 | ${INCLUDE_INSTALL_DIR} | ||
53 | ) | 55 | ) | ||
54 | 56 | | |||
55 | find_library(CLN_LIBRARIES | 57 | if(${_pc_QALCULATE_VERSION} VERSION_LESS 2.0.0) | ||
56 | NAMES | 58 | find_library(CLN_LIBRARIES | ||
57 | cln | 59 | NAMES | ||
58 | PATHS | 60 | cln | ||
59 | ${_pc_CLN_LIBRARY_DIRS} | 61 | PATHS | ||
60 | ${LIB_INSTALL_DIR} | 62 | ${_pc_CLN_LIBRARY_DIRS} | ||
61 | ) | 63 | ${LIB_INSTALL_DIR} | ||
64 | ) | ||||
65 | endif() | ||||
62 | 66 | | |||
63 | else(NOT WIN32) | 67 | else(NOT WIN32) | ||
64 | # XXX: currently no libqalculate on windows | 68 | # XXX: currently no libqalculate on windows | ||
Context not available. |