[cmake-developers] [CMake 0016025]: Add support WINDOWS_EXPORT_ALL_SYMBOLS for executable exports lib

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 18 10:04:00 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16025 
====================================================================== 
Reported By:                Yury Zhuravlev
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16025
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-18 10:04 EDT
Last Modified:              2016-03-18 10:04 EDT
====================================================================== 
Summary:                    Add support WINDOWS_EXPORT_ALL_SYMBOLS for
executable exports lib
Description: 
For access from DLL to mother programm we need create .lib by EXPORTS flag but
without /DEF we can't export symbols.

This code must work:
add_executable(prog1 blalba)
set_target_properties(prog1 PROPERTIES ENABLE_EXPORTS 1)
set_target_properties(prog1 PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS 1)

Now I use ugly perl script for gen .def file.

Thanks. 
PS for .dll's WINDOWS_EXPORT_ALL_SYMBOLS worked correct. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-18 10:04 Yury Zhuravlev New Issue                                    
======================================================================



More information about the cmake-developers mailing list