[CMake] Get full output library filename

Rodolfo Lima rodolfo at rodsoft.org
Fri Jan 11 20:22:28 EST 2008


Hi, is there a way to get the full library name of a library target?
For instance:
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_DEBUG_POSTFIX "d")
add_library(test source.cpp)

I need a way to retrieve 'libtestd.a' as the target output file name. At
first I thought that the target property OUTPUT_NAME would be it, but I
was wrong.

Thanks,
rod



More information about the CMake mailing list