WCDH: Fix condition when variables named "FILE" or "PREFIX" are defined
Reported-by: Kevin Godby <godbyk@gmail.com>
This commit is contained in:
parent
3bc6f4f476
commit
65e6b1152f
|
@ -246,10 +246,10 @@ function(write_compiler_detection_header
|
||||||
file_keyword file_arg
|
file_keyword file_arg
|
||||||
prefix_keyword prefix_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.")
|
message(FATAL_ERROR "write_compiler_detection_header: FILE parameter missing.")
|
||||||
endif()
|
endif()
|
||||||
if (NOT prefix_keyword STREQUAL PREFIX)
|
if (NOT "x${prefix_keyword}" STREQUAL "xPREFIX")
|
||||||
message(FATAL_ERROR "write_compiler_detection_header: PREFIX parameter missing.")
|
message(FATAL_ERROR "write_compiler_detection_header: PREFIX parameter missing.")
|
||||||
endif()
|
endif()
|
||||||
set(options)
|
set(options)
|
||||||
|
|
Loading…
Reference in New Issue