diff --git a/CMakeLists.txt b/CMakeLists.txt index fd48e1a44..9ad09e9e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,9 @@ endif() if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") set(PKGCONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig") +elseif(APPLE) +set(ENV{PKG_CONFIG_PATH} "/usr/local/opt/ncurses/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig") +set(PKGCONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig") else() set(PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig") endif()