From eccefc0aa84e598c6be99f1b1e7d16e677f0675f Mon Sep 17 00:00:00 2001 From: Casey Langen Date: Tue, 20 Sep 2016 17:47:48 -0700 Subject: [PATCH] Small update to CMakeLists.txt to fix non-brew compile in macOS 10.12. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1dee97f2..4bdaf3619 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,6 +69,12 @@ include_directories ( "${musikbox_SOURCE_DIR}/src/contrib/taglib_plugin/taglib-1.11/stage/include" ) +# "/usr/local" doesn't seem to be included by default on macOS 10.12+ +if (CMAKE_SYSTEM_NAME MATCHES "Darwin") +link_directories ("/usr/local/lib") +include_directories("/usr/local/include") +endif (CMAKE_SYSTEM_NAME MATCHES "Darwin") + add_subdirectory(src/core) add_subdirectory(src/musikbox) add_subdirectory(src/contrib/taglib_plugin)