Hello

I set the CMAKE_ARCHIVE_OUTPUT_DIRECTORY, CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_RUNTIME_OUTPUT_DIRECTORY to, say, "${CMAKE_SOURCE_DIR}/bin" .

I also set suffixes so any target in any build configuration has a unique name within my build tree.

CMake's behavior with Visual Studio generators is to generate (read-only) properties on my targets, like:
LOCATION = "c:/path/to/my/project/bin/$(OutDir)/mytarget.dll"
DEBUG_LOCATION = "c:/path/to/my/project/bin/DEBUG/mytarget_d.dll"
RELEASE_LOCATION = "c:/path/to/my/project/bin/RELEASE/mytarget_r.dll"

This is great but I would really love to find a way to remove that $(OutDir) from the way, so that all my targets are put into the same directory, not depending on the build config. There is no possible filename clash since all my targets have different suffixes.

Is there a simple solution to my problem?

Thank you for your time,
Kind regards,
Cyril
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to