Hi,
I have a project that has 3 targets with the only difference
between the targets being the HEADER INCLUDE PATHS and a define that
designates which target it is. I want to be able to compile my source
3 times, each time using the different include paths. This works
fine if I don't have any of the include files in my project. However,
I would like to have the header files in my project so I can view them
and use find to search in them. If I put the include files in my project
then the compile fails because the wrong include files are being used
in the targets.
My question is can I have include files in my project without them being used as the includes during a compile?
Or there some other way I can handle this like somehow telling the targets to only use specific headers?
Thanks,
Mike
I'm using Xcode 3.1.2 and Mac OS X 10.5.7 on a MacBook Pro
Here are the compile commands for the 3 targets with the only difference I see being the SMART_TEST_VERSION define which then determines the verigy_headers/soc path for each of the targets:
CompileC build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.1.4.build/Objects-normal/i386/main.o /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/main.cpp normal i386 c++ com.apple.compilers.gcc.4_0
cd /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O1 -Wreturn-type -Woverloaded-virtual -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 -DUSE_DUMMY_FUNCTIONS -D__linux -D_POSIX_C_SOURCE -DSMART_TEST_VERSION=614 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.1.4.build/xcode_mavericks_testmethods.hmap -F/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/Debug -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/Debug/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.1.4/prod_com/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.1.4/prod_com/include/MAPI -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.1.4/com/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.1.4/pws/lib -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.1.4/mix_sgnl/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/sicl/include -I/Developer_Xcode_3.0/boost_1_37_0 -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.1.4.build/DerivedSources "-D_TM_CDIR=\"TESTMETHOD_DIRECTORY\"
_TM_CDIR=JUNK" -c /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/main.cpp -o /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.1.4.build/Objects-normal/i386/main.o
CompileC build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.3.5.build/Objects-normal/i386/main.o /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/main.cpp normal i386 c++ com.apple.compilers.gcc.4_0
cd /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O1 -Wreturn-type -Woverloaded-virtual -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 -DUSE_DUMMY_FUNCTIONS -D__linux -D_POSIX_C_SOURCE -DSMART_TEST_VERSION=635 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.3.5.build/xcode_mavericks_testmethods.hmap -F/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/Debug -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/Debug/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/prod_com/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/prod_com/include/MAPI -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/prod_com/include/MAPI/DataDisplay -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/prod_com/include/MAPI/FocusCalibration -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/com/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/pws/lib -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.3.5/mix_sgnl/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/sicl/include -I/Developer_Xcode_3.0/boost_1_37_0 -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.3.5.build/DerivedSources "-D_TM_CDIR=\"TESTMETHOD_DIRECTORY\"
_TM_CDIR=JUNK" -c /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/main.cpp -o /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.3.5.build/Objects-normal/i386/main.o
CompileC build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.5.0.build/Objects-normal/i386/main.o /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/main.cpp normal i386 c++ com.apple.compilers.gcc.4_0
cd /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O1 -Wreturn-type -Woverloaded-virtual -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1 -DUSE_DUMMY_FUNCTIONS -D__linux -D_POSIX_C_SOURCE -DSMART_TEST_VERSION=650 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.5.0.build/xcode_mavericks_testmethods.hmap -F/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/Debug -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/Debug/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.5.0/prod_com/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.5.0/prod_com/include/MAPI -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.5.0/com/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.5.0/pws/lib -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/soc_6.5.0/mix_sgnl/include -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mcollier/verigy_headers/sicl/include -I/Developer_Xcode_3.0/boost_1_37_0 -I/Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.5.0.build/DerivedSources "-D_TM_CDIR=\"TESTMETHOD_DIRECTORY\"
_TM_CDIR=JUNK" -c /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/main.cpp -o /Users/mcollier/Version_Controlled_Checkouts/Subversion_Checkouts/mavericks_test/testprograms/trunk/devices/en2510_B0_eng/TestMethod/xcode_mavericks_testmethods/build/xcode_mavericks_testmethods.build/Debug/mavericks_test_methods_6.5.0.build/Objects-normal/i386/main.o