From ef76ab87e76a9b60b923b49fcfe02165df616fd5 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 20 Feb 2016 11:38:29 +0100 Subject: [PATCH] [gdtoa] The C compiler is used, not C++. --- gdtoa/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdtoa/CMakeLists.txt b/gdtoa/CMakeLists.txt index c16542283..4dff4c30d 100644 --- a/gdtoa/CMakeLists.txt +++ b/gdtoa/CMakeLists.txt @@ -8,8 +8,8 @@ if( MSVC ) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4554 /wd4102" ) endif() -if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra" ) +if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra" ) endif() # Enable fast flag for gdtoa