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.k...@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 >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers