From b5595ca015a6a3a4dd7244f17e4b333c3a9ac863 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Fri, 3 Jan 2014 20:17:59 +0100 Subject: [PATCH] Set CFGDIR when building via XCode to be able to run the generated binary. --- Cppcheck.xcodeproj/project.pbxproj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cppcheck.xcodeproj/project.pbxproj b/Cppcheck.xcodeproj/project.pbxproj index d5a852600..521e22b57 100644 --- a/Cppcheck.xcodeproj/project.pbxproj +++ b/Cppcheck.xcodeproj/project.pbxproj @@ -794,7 +794,7 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_MODEL_TUNING = ""; GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ""; + "GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = "CFGDIR=\\\"$SRCROOT/cfg/\\\""; GCC_VERSION = ""; HEADER_SEARCH_PATHS = externals/tinyxml; INSTALL_PATH = /usr/local/bin; @@ -809,6 +809,7 @@ ALWAYS_SEARCH_USER_PATHS = NO; DEBUG_INFORMATION_FORMAT = dwarf; GCC_MODEL_TUNING = ""; + "GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = "CFGDIR=\\\"$SRCROOT/cfg/\\\""; HEADER_SEARCH_PATHS = externals/tinyxml; INSTALL_PATH = /usr/local/bin; PRODUCT_NAME = cppcheck;