build: Revert removal of asio find module

Explicitely prefer config mode search over find module for asio.
This commit is contained in:
Dennis Klein
2021-07-16 10:31:30 +02:00
parent 8859c563ac
commit 170557ace9
3 changed files with 55 additions and 0 deletions

View File

@@ -45,7 +45,11 @@ if(BUILD_FAIRMQ OR BUILD_SDK)
endif()
if(BUILD_OFI_TRANSPORT OR BUILD_SDK OR BUILD_DDS_PLUGIN)
set(__old ${CMAKE_FIND_PACKAGE_PREFER_CONFIG})
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
find_package2(PUBLIC asio REQUIRED VERSION 1.18)
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ${__old})
unset(__old)
endif()
if(BUILD_FAIRMQ)