From 15dac4584f74bf925d52e5416c558b81e8916b5c Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Mon, 19 Dec 2011 02:57:00 +0100 Subject: [PATCH] Override PATH on OS X to avoid picking up pkg-config from MacPorts. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46e7f2b75c..80584b2555 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,7 @@ if (APPLE) # Ignore MacPorts and Fink and any other locally installed packages that # might prevent building a distributable binary. set(CMAKE_SYSTEM_PREFIX_PATH /usr) + set(ENV{PATH} /usr/bin:/bin:/usr/sbin:/sbin) # Some of our code contains Objective C constructs. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -x objective-c")