diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9a552cc0c..55a5e668c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -12,7 +12,6 @@ set(CSYNC_PUBLIC_INCLUDE_DIRS ) set(CSYNC_PRIVATE_INCLUDE_DIRS - ${ICONV_INCLUDE_DIRS} ${INIPARSER_INCLUDE_DIRS} ${SQLITE3_INCLUDE_DIRS} ${CSTDLIB_PUBLIC_INCLUDE_DIRS} @@ -34,7 +33,7 @@ set(CSYNC_LINK_LIBRARIES ) if(HAVE_ICONV AND WITH_ICONV) - list(APPEND CSYNC_PRIVATE_INCLUDE_DIRS ${ICONV_INCLUDE_DIRS}) + list(APPEND CSYNC_PRIVATE_INCLUDE_DIRS ${ICONV_INCLUDE_DIR}) list(APPEND CSYNC_LINK_LIBRARIES ${ICONV_LIBRARIES}) endif() diff --git a/src/std/CMakeLists.txt b/src/std/CMakeLists.txt index e48c1c513..d8d38af9c 100644 --- a/src/std/CMakeLists.txt +++ b/src/std/CMakeLists.txt @@ -5,8 +5,8 @@ set(CSTDLIB_PUBLIC_INCLUDE_DIRS CACHE INTERNAL "cstdlib public include directories" ) -set(CSYNC_PRIVATE_INCLUDE_DIRS - ${ICONV_INCLUDE_DIRS} +set(CSTDLIB_PRIVATE_INCLUDE_DIRS + ${ICONV_INCLUDE_DIR} ) set(CSTDLIB_LIBRARY