mirror of
https://github.com/Z3Prover/z3
synced 2025-04-05 17:14:07 +00:00
[CMake] Fix missing sanitization in z3_add_cxx_flag flag()
function
which caused CMake 2.8.12 to hit an error when handling the `-std=c++11` flag.
This commit is contained in:
parent
1631a68981
commit
ae8a089e25
|
@ -8,6 +8,7 @@ function(z3_add_cxx_flag flag)
|
|||
string(REPLACE "=" "_" SANITIZED_FLAG_NAME "${SANITIZED_FLAG_NAME}")
|
||||
string(REPLACE " " "_" SANITIZED_FLAG_NAME "${SANITIZED_FLAG_NAME}")
|
||||
string(REPLACE ":" "_" SANITIZED_FLAG_NAME "${SANITIZED_FLAG_NAME}")
|
||||
string(REPLACE "+" "_" SANITIZED_FLAG_NAME "${SANITIZED_FLAG_NAME}")
|
||||
unset(HAS_${SANITIZED_FLAG_NAME})
|
||||
CHECK_CXX_COMPILER_FLAG("${flag}" HAS_${SANITIZED_FLAG_NAME})
|
||||
if (z3_add_flag_REQUIRED AND NOT HAS_${SANITIZED_FLAG_NAME})
|
||||
|
|
Loading…
Reference in a new issue