View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012959CMakeModulespublic2012-02-13 05:412013-11-04 09:33
ReporterDavid Demelier 
Assigned ToStephen Kelly 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformUnixOSFreeBSDOS Version9.0
Product VersionCMake 2.8.7 
Target VersionCMake 2.8.12Fixed in VersionCMake 2.8.12 
Summary0012959: GenerateExportHeaders does not work for C
DescriptionThe module GenerateExportHeader creates some defines that may works for C too, but actually the module is only intented for C++.

All attributes may be used for C too, that means you can't use project(name C).
Steps To ReproduceThis example will not works:

project(mylib C)
include(GenerateExportHeader)

add_compiler_export_flags()
add_library(mylib mylib.c)
generate_export_header(mylib)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030049)
Stephen Kelly (developer)
2012-07-16 07:39

I've worked on the fix for this:

https://gitorious.org/~steveire/cmake/steveires-cmake/commits/generate_export_header-fixes [^]

I'll finish it when development on CMake 2.8.10 opens.
(0033245)
Stephen Kelly (developer)
2013-06-05 10:22

This is now possible by replacing the use of

 add_compiler_export_flags()

with

 set(CMAKE_C_VISIBILITY_PRESET hidden)

and

 set(CMAKE_CXX_VISIBILITY_PRESET hidden)

as appropriate, or by setting the ${lang}_VISIBILITY_PRESET property to hidden on individual targets.
(0034365)
Robert Maynard (manager)
2013-11-04 09:33

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-02-13 05:41 David Demelier New Issue
2012-02-13 09:35 Brad King Assigned To => Stephen Kelly
2012-02-13 09:35 Brad King Status new => assigned
2012-07-16 07:39 Stephen Kelly Note Added: 0030049
2012-08-13 09:34 Stephen Kelly Target Version => CMake 2.8.10
2012-10-01 14:19 Stephen Kelly Target Version CMake 2.8.10 => CMake 2.8.11
2013-05-17 09:33 Robert Maynard Target Version CMake 2.8.11 => CMake 2.8.12
2013-06-05 10:22 Stephen Kelly Note Added: 0033245
2013-06-05 10:22 Stephen Kelly Status assigned => resolved
2013-06-05 10:22 Stephen Kelly Fixed in Version => CMake 2.8.12
2013-06-05 10:22 Stephen Kelly Resolution open => fixed
2013-11-04 09:33 Robert Maynard Note Added: 0034365
2013-11-04 09:33 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team