Ralf Habacker wrote:
For my opinion the problem here is caused by the fact that cmake uses the value of the OUPUT_NAME property for creating the import library name and not the target name which is expected.

Why is it expected that the target name be used for the import library
name and not OUTPUT_NAME?  IMO CMake is doing exactly what you told it
to do.  The OUTPUT_NAME property specifies the *file* name for the target,
which is different from the *logical* name in CMake code.  Why shouldn't
the import library for an executable match the name of the executable?

You can tweak the name of the import library by setting the IMPORT_PREFIX
and/or IMPORT_SUFFIX properties on the target:

set_target_properties(k3b_bin PROPERTIES IMPORT_SUFFIX _bin)

-Brad
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to