Avoid if() quoted auto-dereference

When testing CMAKE_<LANG>_COMPILER_ID values, do not explicitly
dereference or quote the variable. We want if() to auto-dereference the
variable and not its value. Also replace MATCHES with STREQUAL where
equivalent.
This commit is contained in:
Ben Boeckel
2014-10-14 10:25:32 -04:00
parent a7596fef6e
commit 29c3edb87a
25 changed files with 50 additions and 50 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ endif()
# Generate C symbol sources.
set(symbol_sources)
if(NOT "${CMAKE_Fortran_COMPILER_ID}" MATCHES "^(PathScale|Cray)$")
if(NOT CMAKE_Fortran_COMPILER_ID MATCHES "^(PathScale|Cray)$")
# Provide mymodule_ and my_module_ init symbols because:
# - PGI Fortran uses module init symbols
# but not for: