From 8a92fa2bffa3e3574161ee5f611d6c5851c2240b Mon Sep 17 00:00:00 2001 From: Mario Werner Date: Mon, 19 Jun 2017 17:31:31 +0200 Subject: [PATCH] use the *_LDFLAGS instead of *_LIBARIES when linking ICU The LIBRARIES variable seems to contain only the name and not the full path. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3afb097..ae4dea2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ if(CXXOPTS_USE_UNICODE_HELP) find_package(PkgConfig) pkg_check_modules(ICU REQUIRED icu-uc) - target_link_libraries(cxxopts INTERFACE ${ICU_LIBRARIES}) + target_link_libraries(cxxopts INTERFACE ${ICU_LDFLAGS}) target_compile_options(cxxopts INTERFACE ${ICU_CFLAGS}) target_compile_definitions(cxxopts INTERFACE CXXOPTS_USE_UNICODE) endif()