mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-25 20:04:31 +00:00
CMake better cache variable properties options for sanitizers
Makes it easier for CMake GUI interfaces to know this is a variable that takes in different strings instead of a boolean.
This commit is contained in:
parent
2b587a74b7
commit
7d285ea7b9
@ -76,7 +76,8 @@ endmacro()
|
||||
macro(process_sanitizer prefix)
|
||||
|
||||
# Add options for the project to use sanitizers
|
||||
option(${prefix}_USE_SANITIZER "Enable building with sanitizer support. Options are: Address, HWAddress, Memory, MemoryWithOrigins, Undefined, Thread, DataFlow, Leak, 'Address,Undefined'" false)
|
||||
set(${prefix}_USE_SANITIZER "false" CACHE STRING "Enable building with sanitizer support.")
|
||||
set_property(CACHE ${prefix}_USE_SANITIZER PROPERTY STRINGS Address HWAddress Memory MemoryWithOrigins Undefined Thread DataFlow Leak "Address,Undefined")
|
||||
if (UNIX)
|
||||
option(${prefix}_OPTIMIZE_SANITIZED_BUILDS "Optimize builds that use sanitization" false)
|
||||
option(${prefix}_BLACKLIST_FILE "Path to blacklist file for sanitizers" "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user