From a2ca87bde0d007b4e118c59c5bcf982acedf0556 Mon Sep 17 00:00:00 2001 From: ceeac Date: Sun, 22 Oct 2017 10:25:01 +0200 Subject: [PATCH] Fix failing link on Ubuntu due to missing libiconv --- src/openrct2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()