Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
65e6b115
Commit
65e6b115
authored
May 07, 2015
by
Brad King
💬
Browse files
WCDH: Fix condition when variables named "FILE" or "PREFIX" are defined
Reported-by:
Kevin Godby
<
godbyk@gmail.com
>
parent
3bc6f4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/WriteCompilerDetectionHeader.cmake
View file @
65e6b115
...
...
@@ -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
"x
FILE
"
)
message
(
FATAL_ERROR
"write_compiler_detection_header: FILE parameter missing."
)
endif
()
if
(
NOT prefix_keyword STREQUAL PREFIX
)
if
(
NOT
"x
${
prefix_keyword
}
"
STREQUAL
"x
PREFIX
"
)
message
(
FATAL_ERROR
"write_compiler_detection_header: PREFIX parameter missing."
)
endif
()
set
(
options
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment