diff options
author | Brad King <brad.king@kitware.com> | 2015-05-07 13:00:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-07 13:00:45 (GMT) |
commit | 65e6b1152fad1b8282761abdfcc389ea4fd4747e (patch) | |
tree | 2c107a9331508ba124fcc4def58cde5e1d524461 /Modules/WriteCompilerDetectionHeader.cmake | |
parent | 3bc6f4f4762ba32d77b229e3385a8084015369b2 (diff) | |
download | CMake-65e6b1152fad1b8282761abdfcc389ea4fd4747e.zip CMake-65e6b1152fad1b8282761abdfcc389ea4fd4747e.tar.gz CMake-65e6b1152fad1b8282761abdfcc389ea4fd4747e.tar.bz2 |
WCDH: Fix condition when variables named "FILE" or "PREFIX" are defined
Reported-by: Kevin Godby <godbyk@gmail.com>
Diffstat (limited to 'Modules/WriteCompilerDetectionHeader.cmake')
-rw-r--r-- | Modules/WriteCompilerDetectionHeader.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/WriteCompilerDetectionHeader.cmake b/Modules/WriteCompilerDetectionHeader.cmake index f4dcb21..a3b73bb 100644 --- a/Modules/WriteCompilerDetectionHeader.cmake +++ b/Modules/WriteCompilerDetectionHeader.cmake @@ -246,10 +246,10 @@ function(write_compiler_detection_header file_keyword file_arg prefix_keyword prefix_arg ) - if (NOT file_keyword STREQUAL FILE) + if (NOT "x${file_keyword}" STREQUAL "xFILE") message(FATAL_ERROR "write_compiler_detection_header: FILE parameter missing.") endif() - if (NOT prefix_keyword STREQUAL PREFIX) + if (NOT "x${prefix_keyword}" STREQUAL "xPREFIX") message(FATAL_ERROR "write_compiler_detection_header: PREFIX parameter missing.") endif() set(options) |