[cmake-developers] CMake removes /DEF: option in CMAKE_SHARED_LINKER_FLAGS
Alexander
alexander.samoylov at gmail.com
Mon Nov 11 07:04:20 EST 2019
Thank you very much, Brad. I found that WINDOWS_EXPORT_ALL_SYMBOLS was set
in my CMakeLists.txt.
After I removed it the /DEF parameter from CMAKE_SHARED_LINKER_FLAGS
appeared in the linking command.
--
Best Regards,
Alexander
On Fri, 8 Nov 2019 at 14:52, Brad King <brad.king at kitware.com> wrote:
> On 11/8/19 5:17 AM, Alexander wrote:
> >
> /DEF:"E:/workspace/cmake_test_option/tesseract/bin/libtesseract.dir/Release/exports.def"
> > is added by CMake automatically and I cannot control it (CMake first
> creates a file
> > objects.txt and then exports.def from it).
>
> That behavior is not default, but activated by
> CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:
>
>
> https://cmake.org/cmake/help/v3.16/variable/CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS.html
>
> The project you're building must be using that setting. Find it and turn
> it off.
>
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20191111/d954185c/attachment.html>
More information about the cmake-developers
mailing list