[CMake] how to determine debug or release mode?

Rolf Eike Beer eike at sf-mail.de
Wed Mar 14 04:48:22 EDT 2012


Please keep the list in the replies so other people may answer.

> actually, I want build my library in debug and release mode with name in
> debug is mylibd.dll and release mode is mylib.dll. can you help me?

set_target_properties(mylib PROPERTIES DEBUG_POSTFIX "d")

Eike


More information about the CMake mailing list