1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-03 23:50:53 +02:00

Do NOT set visibility to hidden for all targets

only if requested and only for our target

use clang-tidy too on CI on cmacos
This commit is contained in:
ClausKlein 2021-03-02 11:55:41 +01:00
parent 1b3755e6e5
commit a50af55582
7 changed files with 26 additions and 16 deletions

View file

@ -1,4 +1,4 @@
set(CPM_DOWNLOAD_VERSION 0.31.0)
set(CPM_DOWNLOAD_VERSION 0.31.1)
if(CPM_SOURCE_CACHE)
# Expand relative path. This is important if the provided path contains a tilde (~)

View file

@ -5,10 +5,6 @@ endif()
option(BUILD_SHARED_LIBS "Create shared libraries" YES)
# Set default visibility to hidden for all targets
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
# build the dynamic libraries and executables together at bin directory
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)