Le ven. 21 juin 2019 à 11:40, Michael Jackson <mike.jack...@bluequartz.net> a écrit :
> > cd Foo > > mkdir Debug && cd Debug > > cmake -DCMAKE_BUILD_TYPE=Debug ../ > > make -j > > > > We have just created a Debug build in the Debug Directory. Now, the same > is analogous for the Release build. > > > > Cd Foo > > Mkdir Release && cd Release > > Cmake -DCMAKE_BUILD_TYPE=Release ../ > > Make -j > > > Or, from CMake 3.13, simpler: cd foo cmake -B release/ -DCMAKE_BUILD_TYPE=Release cmake -B debug/ -DCMAKE_BUILD_TYPE=Debug make -j -C build & make -j -C debug > I am not finding it easy to find 'patterns' for these sort of issues. I > would have thought that configuring a project with separate debug and > release directories would be quite typical. But it's hard to find the > recommended way of doing such things. > It is typical: https://gitlab.kitware.com/cmake/community/wikis/FAQ#what-is-an-out-of-source-build In this case CMake doesn't recommend anything because it assumes this is implemented outside/on top of CMake https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html Marc
-- 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: https://cmake.org/mailman/listinfo/cmake