mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +00:00
726e461b38
Don't rely on the order of warnings for targets being deterministic.
12 lines
352 B
CMake
12 lines
352 B
CMake
|
|
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=")
|
|
|
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
|
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
|
|
|
add_executable(myexe lib.cpp)
|