Re: [CMake] add_custom_command location

2011-11-07 Thread Michael Hertling
On 11/07/2011 05:51 PM, Tomasz Grobelny wrote: > I have a project which is configured in several CMakeLists.txt files. The > problem is that add_custom_command works or doesn't work depending on where > the command is located. If I put add_custom_command just after add_library > then it works fine.

[CMake] add_custom_command location

2011-11-07 Thread Tomasz Grobelny
I have a project which is configured in several CMakeLists.txt files. The problem is that add_custom_command works or doesn't work depending on where the command is located. If I put add_custom_command just after add_library then it works fine. Like this: add_library(mylib SHARED ${SOURCES} ${PRI