diff options
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fd462a..0974c55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -80,6 +80,13 @@ check_include_file(unistd.h HAVE_UNISTD_H) | |||
80 | 80 | ||
81 | # | 81 | # |
82 | # Check visibility attribute is supported | 82 | # Check visibility attribute is supported |
83 | # | ||
84 | if(MSVC) | ||
85 | set(CMAKE_REQUIRED_FLAGS "-WX") | ||
86 | else(MSVC) | ||
87 | set(CMAKE_REQUIRED_FLAGS "-WError") | ||
88 | endif(MSVC) | ||
89 | |||
83 | check_c_source_compiles( | 90 | check_c_source_compiles( |
84 | " | 91 | " |
85 | #include <stdlib.h> | 92 | #include <stdlib.h> |