Commit 65e6b115 authored by Brad King's avatar Brad King 💬
Browse files

WCDH: Fix condition when variables named "FILE" or "PREFIX" are defined

Reported-by: default avatarKevin Godby <>
parent 3bc6f4f4
......@@ -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.")
if (NOT prefix_keyword STREQUAL PREFIX)
if (NOT "x${prefix_keyword}" STREQUAL "xPREFIX")
message(FATAL_ERROR "write_compiler_detection_header: PREFIX parameter missing.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment