You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
352 B
12 lines
352 B
10 years ago
|
|
||
|
enable_language(CXX)
|
||
|
|
||
|
# Ensure CMake warns even if toolchain does not really have these flags.
|
||
|
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
|
||
|
set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
|
||
|
|
||
9 years ago
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
||
|
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||
|
|
||
|
add_executable(myexe lib.cpp)
|