Hi, I'm having trouble understanding this behavior: what happens if the directory of the executable doesn't exist?
I created a minimum example CMakeLists.txt (where foo.cpp is just a hello world): add_executable(test/test.bin foo.cpp) If the "test" directory doesn't exist, should the build system create it? Does that depend on the build system? I tested with make, it gives an error when executing "ld": /usr/bin/ld: cannot open output file test/test.bin: No such file or directory The command that generates the executable and gives the error is (from "make VERBOSE=1"): /usr/bin/c++ CMakeFiles/test/test.bin.dir/foo.cpp.o -o test/test.bin -rdynamic On the other hand, when I tested it with Ninja, it created the directory and finished without errors. Shouldn't cmake's makefile proceed like that too? Thanks! -- []s Relax, it's only ONES and ZEROS!!!! Felipe Menezes Machado Mestre em Ciência da Computação - DCC - UFMG
-- 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://www.cmake.org/mailman/listinfo/cmake