aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-29 21:22:26 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-01 20:46:53 +0100
commit39b50a13a0379ea32be114c85f3c697d75d4e03b (patch)
treec9a0e0e28956913c80f133c1cd632c1aad45f554
parentbbaaab6590e5435fd9c967ca4af5ef06d9182698 (diff)
downloadlibquotient-39b50a13a0379ea32be114c85f3c697d75d4e03b.tar.gz
libquotient-39b50a13a0379ea32be114c85f3c697d75d4e03b.zip
Quotest: build with hidden visibility too
-rw-r--r--quotest/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/quotest/CMakeLists.txt b/quotest/CMakeLists.txt
index cb41141d..ec305620 100644
--- a/quotest/CMakeLists.txt
+++ b/quotest/CMakeLists.txt
@@ -8,6 +8,11 @@ find_package(${Qt} COMPONENTS Concurrent)
add_executable(quotest ${quotest_SRCS})
target_link_libraries(quotest PRIVATE ${Qt}::Core ${Qt}::Test ${Qt}::Concurrent ${PROJECT_NAME})
+set_target_properties(quotest PROPERTIES
+ VISIBILITY_INLINES_HIDDEN ON
+ CXX_VISIBILITY_PRESET hidden
+)
+
if (MSVC)
target_compile_options(quotest PUBLIC /EHsc /W4
/wd4100 /wd4127 /wd4242 /wd4244 /wd4245 /wd4267 /wd4365 /wd4456 /wd4459