From 4a3ed6a7ce035f1b0ad7c8130242d052dc5efcec Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 9 Mar 2015 22:47:35 -0700 Subject: Check for CMAKE_C_COMPILER (not CC_COMPILER) when setting C flags. --- api_test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api_test') diff --git a/api_test/CMakeLists.txt b/api_test/CMakeLists.txt index e3e84f6..7489388 100644 --- a/api_test/CMakeLists.txt +++ b/api_test/CMakeLists.txt @@ -20,6 +20,6 @@ if(MSVC) endif() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4127 /wd4244 /wd4267 /wd4706 /wd4800 /D_CRT_SECURE_NO_WARNINGS") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /TP") -elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99 -pedantic") endif() -- cgit v1.2.3