On 09/05/2016 04:22 AM, Steve Lorimer wrote: > $ cat src/foo/foobar/CMakeLists.txt > add_executable(foobar main.cpp) > However, if I am in the build/foo directory, then nothing happens > if I "make foobar".
That's because the foobar target is defined in build/foo/foobar. The target names are only buildable in the top level or in the subdirectory that defines a given target. -Brad -- 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-developers
