From d03d853b9a608dda5ef9cbb40384f3dbabb3ed5a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 21 Dec 2019 12:48:48 +0300 Subject: cmake: use Boost::* imported targets --- cxx/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cxx') diff --git a/cxx/CMakeLists.txt b/cxx/CMakeLists.txt index 2c265f5..64613f7 100644 --- a/cxx/CMakeLists.txt +++ b/cxx/CMakeLists.txt @@ -2,8 +2,7 @@ find_package(Boost REQUIRED) add_library(aesxx INTERFACE) target_include_directories(aesxx INTERFACE include/) -target_include_directories(aesxx SYSTEM INTERFACE ${Boost_INCLUDE_DIRS}) -target_link_libraries(aesxx INTERFACE aes) +target_link_libraries(aesxx INTERFACE aes Boost::boost) if(MSVC_VERSION EQUAL 1900) # These annoying DbgHelp.h warnings: -- cgit v1.2.3