MantisBT - CMake
View Issue Details
0016018CMakeCMakepublic2016-03-14 13:412016-06-10 14:31
abductor 
Kitware Robot 
immediateblockalways
closedmoved 
Windows
CMake 3.4.1 
 
0016018: macros CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS don't work
class consist static member and method.

macros CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS don't export this method and member out dll/lib
No tags attached.
Issue History
2016-03-14 13:41abductorNew Issue
2016-03-17 07:30Andreas SchuhNote Added: 0040709
2016-03-17 07:30Andreas SchuhNote Edited: 0040709bug_revision_view_page.php?bugnote_id=40709#r2062
2016-03-28 16:16abductorNote Added: 0040765
2016-06-10 14:29Kitware RobotNote Added: 0042965
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0040709)
Andreas Schuh   
2016-03-17 07:30   
Have a look at the Kitware blog post about the new CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS feature.

It clarifies that this does not work for static and global data members. You still have to use the export macros generated by the GenerateExportHeader module for these, or hide static member variables in static getter functions. It's all explained in the blog post:

https://blog.kitware.com/create-dlls-on-windows-without-declspec-using-new-cmake-export-all-feature/ [^]

(0040765)
abductor   
2016-03-28 16:16   
thanks
(0042965)
Kitware Robot   
2016-06-10 14:29   
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.