mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[cmake] Add SPINE_SET_COMPILER_FLAGS (#2698)
* Add SPINE_SET_COMPILER_FLAGS * remove newline
This commit is contained in:
parent
c05170d76a
commit
39c9caff0a
@ -1,4 +1,9 @@
|
||||
option(SPINE_SANITIZE "Build with sanitization" OFF)
|
||||
option(SPINE_SET_COMPILER_FLAGS "Set compiler flags" ON)
|
||||
|
||||
if (NOT SPINE_SET_COMPILER_FLAGS)
|
||||
return();
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
message("MSCV detected")
|
||||
@ -11,4 +16,4 @@ else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize=undefined")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user