[CMake] How to change intermediate directory?
Robert Dailey
rcdailey.lists at gmail.com
Wed Sep 11 17:07:47 EDT 2013
Currently all intermediate files are placed relative to the location
of that VCPROJ file (when generating visual studio projects through
CMake).
I'd like to structure them like so:
${CMAKE_BINARY_DIR}/output/obj/<CONFIGURATION>/<TARGET_NAME>
For example, I can set CMAKE_RUNTIME_OUTPUT_DIRECTORY like this:
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/output/bin" )
This lets me override where the executables are placed. Is there a
similar override for intermediate files? Thanks.
More information about the CMake
mailing list