View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013200CMakeCMakepublic2012-05-08 10:402016-06-10 14:31
ReporterMathieu Malaterre 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.8 
Target VersionFixed in Version 
Summary0013200: Invalid make syntax generated with ; in target VERSION property
DescriptionSteps to reproduce:

$ echo "int bla() { return 0;}" > bla.c
$ cat CMakeLists.txt

cmake_minimum_required(VERSION 2.8)
project(test2 C)

SET(LIB_PROPERTIES
  VERSION "1.0"
  SOVERSION "1"
)

add_library(lib2 SHARED bla.c)
set_property(TARGET lib2 PROPERTY ${LIB_PROPERTIES})

then simply run cmake && make

It would be nice if cmake would trigger a warning on the improper syntax:


set_property(TARGET lib2 PROPERTY ${LIB_PROPERTIES})


Thanks
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029421)
Brad King (manager)
2012-05-08 10:46

The set_property command cannot warn. The call

 set_property(TARGET lib2 PROPERTY VERSION "1.0" SOVERSION "1")

is a perfectly valid way to set the "VERSION" property to "1.0;SOVERSION;1".

Perhaps instead the generator could disallow ';' and perhaps other characters in the VERSION and SOVERSION values. We can't simply validate them as numbers because the versions can be arbitrary strings.

(0042043)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2012-05-08 10:40 Mathieu Malaterre New Issue
2012-05-08 10:40 Mathieu Malaterre Category (No Category) => CMake
2012-05-08 10:40 Mathieu Malaterre Description Updated
2012-05-08 10:46 Brad King Note Added: 0029421
2012-05-08 10:46 Brad King Status new => backlog
2012-05-08 10:46 Brad King Product Version => CMake 2.8.8
2012-05-08 10:46 Brad King Summary CMakeFiles/lib2.dir/build.make:82: *** missing separator => Invalid make syntax generated with ; in target VERSION property
2016-06-10 14:28 Kitware Robot Note Added: 0042043
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team