From 58c0f433d9c9082c4c66f37fa273d30d7865d8c4 Mon Sep 17 00:00:00 2001 From: Thibault Hallouin <thibault.hallouin@inrae.fr> Date: Fri, 9 Dec 2022 17:07:09 +0100 Subject: [PATCH] hide symbols of inline functions --- CMakeLists.txt | 6 ++++++ tests/CMakeLists.txt | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22712a3..4ed32f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,12 @@ add_library( add_library(EvalHyd::evalhyd ALIAS evalhyd) +set_target_properties( + evalhyd + PROPERTIES + VISIBILITY_INLINES_HIDDEN ON +) + target_include_directories( evalhyd PUBLIC diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 02690d4..eb0ffa7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,6 +15,13 @@ add_executable( test_uncertainty.cpp ) +set_target_properties( + evalhyd_tests + PROPERTIES + VISIBILITY_INLINES_HIDDEN ON + CXX_VISIBILITY_PRESET hidden +) + target_include_directories( evalhyd_tests PRIVATE -- GitLab