Use the proper CMake variable to recognize GCC instead of trying
to match the command name. ok steven@
This commit is contained in:
parent
a53674235e
commit
504860a9d8
18
math/plplot/patches/patch-cmake_modules_csiro_cmake
Normal file
18
math/plplot/patches/patch-cmake_modules_csiro_cmake
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-cmake_modules_csiro_cmake,v 1.1 2011/09/11 14:07:10 naddy Exp $
|
||||
--- cmake/modules/csiro.cmake.orig Thu Sep 8 01:23:36 2011
|
||||
+++ cmake/modules/csiro.cmake Thu Sep 8 01:24:50 2011
|
||||
@@ -31,11 +31,11 @@ if(HAVE_QHULL OR WITH_CSA)
|
||||
set(NAN_CFLAGS "${NAN_CFLAGS} -mieee-fp")
|
||||
else(CMAKE_SYSTEM_PROCESSOR MATCHES "i[0-9]86")
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
|
||||
- if(CMAKE_C_COMPILER MATCHES "gcc")
|
||||
+ if(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(NAN_CFLAGS "${NAN_CFLAGS} -mieee")
|
||||
- else(CMAKE_C_COMPILER MATCHES "gcc")
|
||||
+ else(CMAKE_COMPILER_IS_GNUCC)
|
||||
set(NAN_CFLAGS "${NAN_CFLAGS} -ieee")
|
||||
- endif(CMAKE_C_COMPILER MATCHES "gcc")
|
||||
+ endif(CMAKE_COMPILER_IS_GNUCC)
|
||||
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "alpha.*")
|
||||
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "i[0-9]86")
|
||||
if(NOT DEFINED NaNAwareCCompiler)
|
Loading…
x
Reference in New Issue
Block a user