Thanks a lot Alan,
this solved the issue and also my original problem concerning the pot
target.
> Yes. replace bla.txt everywhere by ${CMAKE_CURRENT_BINARY_DIR}/bla.txt,
It is sufficient to specify the path for add_custom_target, i.e.
--8<-------CMakeLists.txt------------
cmake_minimum_required(VERSION 2.6)
project(test)
add_custom_command(
OUTPUT bla.txt
COMMAND touch bla.txt
)
add_custom_target(bla DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bla.txt)
--8<-------CMakeLists.txt------------
And then it's also clear why this is required. The OUTPUT is created in
the build tree, while DEPENDS are expected in the source tree.
Many thanks and a happy new year,
- lars.
_______________________________________________
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