From dedec007bc75fbb7a000355f2aa7652195c64a2c Mon Sep 17 00:00:00 2001 From: axxel Date: Fri, 15 Mar 2024 22:40:05 +0100 Subject: [PATCH] cmake: move CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS from top-level to core --- CMakeLists.txt | 4 ---- core/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7a1d81c85..24b1b52970 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,10 +35,6 @@ if (NOT CMAKE_BUILD_TYPE) set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") endif() -if (BUILD_SHARED_LIBS) - set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -endif() - if (NOT (BUILD_READERS OR BUILD_WRITERS)) message(FATAL_ERROR "At least one of BUILD_READERS/BUILD_WRITERS must be enabled.") endif() diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 6ccee80122..116b42fc9c 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -29,6 +29,10 @@ elseif (BUILD_WRITERS MATCHES "BOTH") set (BUILD_WRITERS_OLD ON) endif() +if (BUILD_SHARED_LIBS) + set (CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +endif() + set (ZXING_PUBLIC_FLAGS $<$:-DZXING_BUILD_EXPERIMENTAL_API> )