Remove explicit use of config mode for finding CAF

This commit is contained in:
Dominik Charousset 2020-12-15 12:14:23 +01:00
parent dd7bda6a1c
commit 1faea1d73d
3 changed files with 4 additions and 4 deletions

View file

@ -314,11 +314,11 @@ endif ()
if ( CAF_ROOT OR BROKER_ROOT_DIR )
# TODO: drop < 3.12 compatibility check when raising the minimum CMake version
if ( CAF_ROOT AND CMAKE_VERSION VERSION_LESS 3.12 )
find_package(CAF ${CAF_VERSION_MIN_REQUIRED} REQUIRED CONFIG
find_package(CAF ${CAF_VERSION_MIN_REQUIRED} REQUIRED
COMPONENTS openssl test io core
PATHS "${CAF_ROOT}")
else ()
find_package(CAF ${CAF_VERSION_MIN_REQUIRED} REQUIRED CONFIG
find_package(CAF ${CAF_VERSION_MIN_REQUIRED} REQUIRED
COMPONENTS openssl test io core)
endif ()
message(STATUS "Using system CAF version ${CAF_VERSION}")

@ -1 +1 @@
Subproject commit e8de3de783f6d8f7e36eeb6c32c5f30dcf16087c
Subproject commit 617611a053cba5ce2c40fe7286e8ea183d7b0f7f

2
cmake

@ -1 +1 @@
Subproject commit 40251ae850dee52eae8eb05e552c165e2deef354
Subproject commit eeae54e7678706d012b09e31a3ef046dad8ef183