[CMake] MSVC10 project error
J Decker
d3ck0r at gmail.com
Tue Sep 7 03:29:46 EDT 2010
The sample CMakeLists.txt (requires a blank 'whatever.c' file)
-------------
cmake_minimum_required(VERSION 2.8)
add_library( bag.service.external SHARED whatever.c )
SET_TARGET_PROPERTIES( bag.service.external PROPERTIES
SUFFIX ""
PREFIX ""
)
------------
the configuration of link library target is...
$(OutDir)$(TargetName)$(TargetExt)
When I click edit, and check the macros
$(OutDir)=(somewhere, doesn't matter)
$(TargetName)=bag
$(TargetExt)=.external
so the resulting name is 'bag.external' losing 'service' somewhere in
the middle.
.............
can probably work around by replacing a '.' in the target name with
something else.
More information about the CMake
mailing list