Skip to content

Commit

Permalink
[cmake] Add SPINE_SET_COMPILER_FLAGS (#2698)
Browse files Browse the repository at this point in the history
* Add SPINE_SET_COMPILER_FLAGS

* remove newline
  • Loading branch information
hsdk123 authored Dec 18, 2024
1 parent c05170d commit 39c9caf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flags.cmake
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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()

0 comments on commit 39c9caf

Please sign in to comment.