Commit b28a9e84 authored by Vinson Lee's avatar Vinson Lee

cmake: Use C++ compiler to link C programs if using Solaris Studio.

Fixes Solaris Studio build.

Bugzilla: Vinson Lee's avatarVinson Lee <>
parent 5e8bd3e2
......@@ -158,6 +158,14 @@ if (MINGW)
endif ()
endif ()
# Use C++ to link C files.
# Modified rule from Modules/CMakeCInformation.cmake.
if (WIN32)
# MSVC & MinGW only define & use APIENTRY
add_definitions (-DGLAPIENTRY=__stdcall)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment