diff options
author | Brad King <brad.king@kitware.com> | 2017-02-27 14:37:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-28 14:03:12 (GMT) |
commit | e4ac7c2b4f9523330c4811ff03da69e334665f98 (patch) | |
tree | a50a8f0d8461eb1a7aeada18b924d5f24a413a34 /Utilities/cmlibuv/CMakeLists.txt | |
parent | c9b3c5625a4b35235bfe19e95db8e7d0dfbde59c (diff) | |
download | CMake-e4ac7c2b4f9523330c4811ff03da69e334665f98.zip CMake-e4ac7c2b4f9523330c4811ff03da69e334665f98.tar.gz CMake-e4ac7c2b4f9523330c4811ff03da69e334665f98.tar.bz2 |
libuv: Compile as C 90 on Solaris 10
Diffstat (limited to 'Utilities/cmlibuv/CMakeLists.txt')
-rw-r--r-- | Utilities/cmlibuv/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index 1899f83..6632a1e 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -224,6 +224,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") list(APPEND uv_defines _XOPEN_SOURCE=500 ) + if(CMAKE_C_STANDARD) + set(CMAKE_C_STANDARD 90) + endif() else() list(APPEND uv_defines _XOPEN_SOURCE=600 |