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)