[Cmake] windows .lib .dll output dirs

Clinton Stimpson clinton at elemtech.com
Tue Aug 31 14:44:39 EDT 2004


I have a tree like this...

topdir/
    lib/
    bin/

and I want all .lib files to be put in the lib directory and all .dll 
files in the bin directory (both release and debug).
SET(CMAKE_DEBUG_POSTFIX "_d")  so all my debug libs are postfixed with _d.

If I use
SET(LIBRARY_OUTPUT_PATH ${MYPROJ_BINARY_DIR}/bin)
then it works fine on Unix.

But on Windows with project files, I get  topdir/bin/Debug and 
topdir/bin/Release and the libraries go in there.
I don't want Debug and Release subdirectories.

Any ideas?

Thanks,
Clint




More information about the Cmake mailing list