Skip to content

Commit

Permalink
Make sure GCC properly errors when checking visiblity attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Oct 3, 2011
1 parent e1cbf06 commit a5c74e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit a5c74e3

Please sign in to comment.