From c37c4c437e544406113e00483f62b07d689f2bff Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 13 Mar 2018 14:13:39 -0400 Subject: [PATCH] Fix find-package-test --- test/find-package-test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/find-package-test/CMakeLists.txt b/test/find-package-test/CMakeLists.txt index a57de003..e860879c 100644 --- a/test/find-package-test/CMakeLists.txt +++ b/test/find-package-test/CMakeLists.txt @@ -6,10 +6,10 @@ find_package(FMT REQUIRED) add_executable(library-test main.cc) target_compile_options(library-test PUBLIC ${CPP14_FLAG}) -target_link_libraries(library-test fmt) +target_link_libraries(library-test fmt::fmt) -if (TARGET fmt-header-only) +if (TARGET fmt::fmt-header-only) add_executable(header-only-test main.cc) target_compile_options(header-only-test PUBLIC ${CPP14_FLAG}) - target_link_libraries(header-only-test fmt-header-only) + target_link_libraries(header-only-test fmt::fmt-header-only) endif ()