From c404d12f830c66971ad14b13f6cc35cadfd39c68 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 18 Jan 2015 11:09:29 +0800 Subject: cmake: fix up gtest and set -fvisibility=hidden globally --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35ecafde..b14daee4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ if (CMAKE_COMPILER_IS_GNUCC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_COMPILE_FLAGS}") if (UNIX) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") endif() endif() -- cgit v1.2.3