Hi I am rather confused about how to specify the output directory. I am working on Windows with the Ninja generator and Microsoft toolset. My default build type is Debug. I am building a library and an executable:
add_subdirectory(../Kernel Kernel) add_executable(MyExe ../Kernel/main.cpp) The resulting directory structure, after a build, is: Kernel <== source files |--CMakeLists.txt CMake |--CMakeLists.txt |-- build_msvc |--Kernel <== library goes here |--debug <== exe goes here I want the Kernel library to go into the 'debug' folder (where the exe is correctly being put). $CMAKE_RUNTIME_OUTPUT_DIRECTORY and $RUNTIME_OUTPUT_DIRECTORY are undefined. How would I achieve this? Which variable holds the exe output path: build_msvc/debug? Best regards David
-- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each offering, please visit https://cmake.org/services Visit other Kitware open-source projects at https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in favor of https://discourse.cmake.org