From d14d82b57efc6de1031cacb79bc478c8b5948deb Mon Sep 17 00:00:00 2001 From: egorpugin Date: Sun, 8 Mar 2015 13:20:06 +0000 Subject: [PATCH] [build] [cmake] Fix OS X build. --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad424acec8..b16ef83772 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,7 +220,7 @@ if (NOT LINUX AND (CLANG OR IOS)) set(LIB_iconv iconv) endif() -if (FREEBSD) +if (FREEBSD OR APPLE) include_directories(/usr/local/include) link_directories(/usr/local/lib) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b8fa334f17..a0744efc5b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -617,7 +617,7 @@ set(gpre_boot_src if (NOT CMAKE_CROSSCOMPILING) add_executable (gpre_boot ${gpre_boot_src} ${VERSION_RC}) -target_link_libraries (gpre_boot gpre_common common ${LIB_Ws2_32}) +target_link_libraries (gpre_boot gpre_common common ${LIB_iconv} ${LIB_Ws2_32}) set_output_directory (gpre_boot . CURRENT_DIR) project_group (gpre_boot Boot)