[CMake] multiple custom commands and multiple OBJECT_DEPENDS

Clinton Stimpson clinton at elemtech.com
Wed Oct 20 19:41:50 EDT 2004


Here's another possible problem I have...

I have two generated .h files.  They both get included into the same 
.cpp file.
So I add this to my CMakeLists.txt file.
SET_SOURCE_FILES_PROPERTIES(CommandHandler.cpp PROPERTIES
                               OBJECT_DEPENDS ${cubit_BINARY_DIR}/allwords.h
                               OBJECT_DEPENDS 
${cubit_BINARY_DIR}/keywords.h)

But in my windows project file, only the custom build rule for kewords.h 
shows up.
And when I go to build CommandHandler.cpp, allwords.h isn't generated.
If I switch the order that I specify the depends, it'll get allwords.h 
but not keywords.h.
In other words, it'll only pick up the last dependency I specify.

Why?

It seem to work fine on Unix.

Clint



More information about the CMake mailing list