[CMake] Internal CMake error with ExternalProject_Add and XCode
Bill Hoffman
bill.hoffman at kitware.com
Thu Feb 21 21:31:20 EST 2013
On 2/21/2013 8:15 PM, Todd Greer wrote:
> add_definitions(-include global/Include.h)
>
> We call CMake with these two lines in a shell script: cmake -G Xcode
> .. cmake --build . --config Release
>
> It turns out that call to add_definitions is key. It worked perfectly
> until we added in the ExternalProject_Add. I don't understand why
> they interact, at all, but they do.
So, does that flag work even in regular Xcode projects? I am thinking
using add_definitions like that might be the problem. That is really a
compiler flag. What if you put it in CMAKE_CXX_FLAGS or CMAKE_C_FLAGS?
Is there another way to do that in your project?
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the CMake
mailing list