Override PATH on OS X to avoid picking up pkg-config from MacPorts.

This commit is contained in:
Maarten ter Huurne 2011-12-19 02:57:00 +01:00
parent 6f27a29d51
commit 15dac4584f

View File

@ -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")