Using version 3.2.0-rc2 on the Mac OS X 10.10 with the make generator. The
following example executes the custom to create A.txt and B.txt twice when
building with make -jN
————————-
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
add_custom_target(Main ALL DEPENDS A.txt B.txt)
add_custom_command(OUTPUT A.txt B.txt
COMMAND touch A.txt
COMMAND touch B.txt)
————————-
$ make clean
$ make -j10
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/mato/Development/ROOT/build.master/temp
[100%] [100%] Generating A.txt, B.txt
Generating A.txt, B.txt
[100%] Built target Main
This is not the case for version 3.1.3.
Cheers,
Pere
-------------------------------------------------------------
Pere Mato CERN, PH Department, CH 1211 Geneva 23, Switzerland
e-mail: [email protected]<mailto:[email protected]> tel: +41 22 76 78696
fax: +41 22 76 68792 gsm: +41 76 48 70855
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake