use the *_LDFLAGS instead of *_LIBARIES when linking ICU
The LIBRARIES variable seems to contain only the name and not the full path.
This commit is contained in:
parent
60a2cf333b
commit
8a92fa2bff
@ -44,7 +44,7 @@ if(CXXOPTS_USE_UNICODE_HELP)
|
|||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_check_modules(ICU REQUIRED icu-uc)
|
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_options(cxxopts INTERFACE ${ICU_CFLAGS})
|
||||||
target_compile_definitions(cxxopts INTERFACE CXXOPTS_USE_UNICODE)
|
target_compile_definitions(cxxopts INTERFACE CXXOPTS_USE_UNICODE)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user