From b1441ac22273d38900f1333df2125140539bea34 Mon Sep 17 00:00:00 2001 From: Andrew Reynhout Date: Sun, 10 Dec 2017 19:42:26 -0500 Subject: [PATCH] Add default MacPorts link_directories and include_directories config --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a2c411dd..c7b9161c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,9 +78,12 @@ include_directories ( ) # "/usr/local" doesn't seem to be included by default on macOS 10.12+ +# "/opt/local" is the default installation location for MacPorts if (CMAKE_SYSTEM_NAME MATCHES "Darwin") link_directories ("/usr/local/lib") include_directories("/usr/local/include") + link_directories ("/opt/local/lib") + include_directories("/opt/local/include") endif () if (EXISTS "/etc/arch-release" OR EXISTS "/etc/manjaro-release" OR NO_NCURSESW)