summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-27 14:37:39 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-28 14:03:12 (GMT)
commite4ac7c2b4f9523330c4811ff03da69e334665f98 (patch)
treea50a8f0d8461eb1a7aeada18b924d5f24a413a34 /Utilities/cmlibuv
parentc9b3c5625a4b35235bfe19e95db8e7d0dfbde59c (diff)
downloadCMake-e4ac7c2b4f9523330c4811ff03da69e334665f98.zip
CMake-e4ac7c2b4f9523330c4811ff03da69e334665f98.tar.gz
CMake-e4ac7c2b4f9523330c4811ff03da69e334665f98.tar.bz2
libuv: Compile as C 90 on Solaris 10
Diffstat (limited to 'Utilities/cmlibuv')
-rw-r--r--Utilities/cmlibuv/CMakeLists.txt3
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