diff --git a/CMakeLists.txt b/CMakeLists.txt index 2453f2f6..b3ac18d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,9 +175,10 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(iconv iconv) else() - set(iconv ${ICONV_LIBRARY}) + include(FindIconv) + set(iconv ${Iconv_LIBRARY}) set(unicode "") - include_directories(${ICONV_INCLUDE_DIR}) + include_directories(${Iconv_INCLUDE_DIR}) endif() add_library(libau OBJECT ${au_sources} ${au_headers})