diff options
author | Brad King <brad.king@kitware.com> | 2015-05-08 13:41:22 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-08 13:41:22 (GMT) |
commit | 715b3edf7d4629a84baae9c141247474a1771157 (patch) | |
tree | e1c69062e3e03268ad1bb7c63f53e858152071f0 | |
parent | e38a2b5953ff4d10ee5aedb4b7e00be6d66f099c (diff) | |
parent | 65e6b1152fad1b8282761abdfcc389ea4fd4747e (diff) | |
download | CMake-715b3edf7d4629a84baae9c141247474a1771157.zip CMake-715b3edf7d4629a84baae9c141247474a1771157.tar.gz CMake-715b3edf7d4629a84baae9c141247474a1771157.tar.bz2 |
Merge topic 'WCDH-CMP0054-safety'
65e6b115 WCDH: Fix condition when variables named "FILE" or "PREFIX" are defined
-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) |