[CMake] Output dir with MSVC6
William A. Hoffman
billlist at nycap.rr.com
Thu Jan 6 16:42:33 EST 2005
Well, the first thing to do would be to figure out how you would do
this without cmake. Can you do it by hand using the MSDEV environment?
If so, how, but $(IntDir) is really the only thing you have.
I suppose you could change the compile to be a custom command for the file that
builds the .pch file, then use IntDir. That may be your best bet.
-Bill
At 04:37 PM 1/5/2005, Martin Trudeau wrote:
>Hi Bill.
>
>As I mentioned in my post, I want to change where the object
>file of a specific source file will be placed after compilation.
>Instead of the default ${PROJECT_BINARY_DIR}/$(IntDir)/ ,
>I would like the object file to be placed in
>${OTHERPROJECT_BINARY_DIR}/$(IntDir)/ .
>So as you see, at least with MSVC, the directory should vary
>according to the configuration.
>
>If you really want to know, the reason I want this is to allow
>the use of one common precompiled header file (.pch) for the
>building of many libraries.
>
>This notwithstanding, the other question remains, is it possible to
>have different compilation flags for each configuration of a single
>source file and not the whole project?
>
>Thanks for your help.
>
>-Martin
>
>_______________________________________________
>CMake mailing list
>CMake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list