diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 7b17bc2594..2865d9e324 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -193,7 +193,7 @@ if (NOT DISABLE_TTF) endif () endif () -if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD") +if (UNIX OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD") find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c) target_link_libraries(${PROJECT} ${ICONV_LIBRARIES}) endif()