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
[email protected]
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to