[CMake] MSVC10 project error
J Decker
d3ck0r at gmail.com
Tue Sep 7 03:48:33 EDT 2010
On Tue, Sep 7, 2010 at 12:29 AM, J Decker <d3ck0r at gmail.com> wrote:
> The sample CMakeLists.txt (requires a blank 'whatever.c' file)
> -------------
> cmake_minimum_required(VERSION 2.8)
>
Same sceneario but instead specify a flat name with '-'
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)
$(TargetFileName)=bag-service-external
$(TargetName)=bag-service-external
$(TargetExt)=.dll
So the resulting filename has .dll appended to it.
>
>
> .............
>
> can probably work around by replacing a '.' in the target name with
> something else.
>
actually the correct result requires a single . in the filename,
neither projects with no . or with multiple . works.
More information about the CMake
mailing list