mardi 3 mars 2015

Set the directory for Intermediate files (like .obj) in CMake


Vote count:

0




I've seen that CMake put the intermediate files, like .obj in a directory like this :



http://ift.tt/1Ecuchm


Is there a way to have something like that :



project.dir/Debug/ myfiles.obj |--> for my debug


and



project.dir/Release/ myfiles.obj |--> for my release


For moment, I used 2 separate directory to generate each time my libraries or executable for the Debug and the release. And after I have also the platform...


Is there something similar to CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE or CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE...


for intermediate files.obj ?


I've try too the /Fo but when I used this FLAG, Cmake override with his configuration :


warning D9025 : overriding '/Fo;../x64/Debug/' with '/FoCMakeFiles\project.dir\src\project\main.cpp.obj'


Please, does someone have a solution ?



asked 2 mins ago







Set the directory for Intermediate files (like .obj) in CMake

Aucun commentaire:

Enregistrer un commentaire