On 3/29/2011 9:49 AM, David Doria wrote:
You might want to try running cmake --trace and see if something odd is
happening when it is run.

-Bill


Here is the output of the trace:
http://pastebin.com/MfTcNHFE

It looks like the definitions list is being created and applied to the
target, does it not? (see the last 10 lines of that output).

What I don't see in the trace is the other definitions that I DO see
in the make VERBOSE output (like -D__WXGTK__). Where would these be
added?

David


Most likely coming from here:
/home/doriad/src/CMake/Modules/UsewxWidgets.cmake(72): SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS} )

Hmm, there is also this:

/home/doriad/src/CMake/Modules/UsewxWidgets.cmake(60): SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ${wxWidgets_DEFINITIONS} )


I wonder if the directory properties are causing the trouble some how.

If you add a message to print out CMAKE_CXX_FLAGS you should see that stuff. That should not affect the definitions... But, the directory property might be the problem. You could try that in the small example.

-Bill
_______________________________________________
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