File: TestGCCVisibility.cmake

package info (click to toggle)
s3d 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,708 kB
  • sloc: ansic: 23,609; python: 488; perl: 98; makefile: 31; sh: 29
file content (10 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2007-2015  Sven Eckelmann <sven@narfation.org>

include(CheckCCompilerFlag)

# Hide non exported functions/variables
check_c_compiler_flag("-fvisibility=hidden -DHAVE_GCCVISIBILITY" HAVE_GCCVISIBILITY)
if (HAVE_GCCVISIBILITY)
	add_definitions("-fvisibility=hidden -DHAVE_GCCVISIBILITY")
endif (HAVE_GCCVISIBILITY)