mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Build GPSTk with the same visibility settings
This commit is contained in:
parent
02b0fbed2e
commit
708c696a69
@ -2,12 +2,21 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
SPDX-FileCopyrightText: 2020 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
||||
--- CMakeLists.txt 2020-10-25 10:06:26.000000000 +0100
|
||||
+++ CMakeLists.txt 2020-10-25 10:06:11.000000000 +0100
|
||||
@@ -74,7 +74,7 @@
|
||||
@@ -74,7 +74,16 @@
|
||||
|
||||
|
||||
include( BuildSetup.cmake )
|
||||
-
|
||||
+set(STADYN "STATIC")
|
||||
+if(POLICY CMP0063)
|
||||
+ cmake_policy(SET CMP0063 NEW)
|
||||
+ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
+ set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
||||
+else()
|
||||
+ if((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
||||
+ add_definitions(-fvisibility=hidden)
|
||||
+ endif()
|
||||
+endif()
|
||||
#============================================================
|
||||
# Core Library Target Files
|
||||
#============================================================
|
||||
|
Loading…
Reference in New Issue
Block a user