Re: [CMake] add_custom_command scope

2016-01-19 Thread Hendrik Sattler
Am 19. Januar 2016 12:30:39 MEZ, schrieb Lars : > Hello, > >Using CMake 3.3 and VS2012. > >The below cmake scripts generate "Policy CMP0040 is not set: The target >in the TARGET signature of add_custom_command must exists". Why cannot >the custom/CMakeLists.txt file see the target created in >a

[CMake] add_custom_command scope

2016-01-19 Thread Lars
Hello, Using CMake 3.3 and VS2012. The below cmake scripts generate "Policy CMP0040 is not set: The target in the TARGET signature of add_custom_command must exists". Why cannot the custom/CMakeLists.txt file see the target created in app/CMakeLists.txt ? Moving the ADD_CUSTOM_COMMAND to th