diff options
author | Chris Robinson <[email protected]> | 2011-10-02 22:12:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-10-02 22:12:31 -0700 |
commit | a5c74e324c294354b3297ec53ffa4d55490d24aa (patch) | |
tree | 1710200cb85f95d9110510d3a77bfc9ad1f34aae /CMakeLists.txt | |
parent | e1cbf06653171e9fff398cf07641bac9d51262d8 (diff) |
Make sure GCC properly errors when checking visiblity attributes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 14492387..25fd546d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,7 +182,7 @@ IF(WIN32) ELSE() SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") # Yes GCC, really don't accept visibility modes you don't support - SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -Werror") + SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -Wattributes -Werror") CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"protected\"))); int main() {return 0;}" HAVE_GCC_PROTECTED_VISIBILITY) |