Skip to content

Commit

Permalink
Make autowiring visibility hidden on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Tremper committed Oct 28, 2014
1 parent 69ddc79 commit 653d7c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -27,7 +27,7 @@ else()
endif()

if(NOT WIN32)
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libstdc++")
endif()
if(USE_LIBCXX)
Expand Down
2 changes: 2 additions & 0 deletions src/autowiring/CMakeLists.txt
Expand Up @@ -195,6 +195,8 @@ ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" Autowiring_SRCS)
#

add_library(Autowiring STATIC ${Autowiring_SRCS})
set_target_properties(Autowiring PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")

target_include_directories(Autowiring INTERFACE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
Expand Down

0 comments on commit 653d7c3

Please sign in to comment.