[CMake] Output dir with MSVC6

Martin Trudeau mtrudeau at info-internet.net
Wed Jan 5 16:37:23 EST 2005


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



More information about the CMake mailing list