Skip to content

Commit

Permalink
CMAKE_CXX_FLAGS should also be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Oct 6, 2024
1 parent eca5bbc commit de58f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if(MANIFOLD_FUZZ)
# enable fuzztest fuzzing mode
set(FUZZTEST_FUZZING_MODE ON)
# address sanitizer required
list(APPEND CMAKE_CXX_FLAGS -fsanitize=address)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
endif()

if(TRACY_ENABLE)
Expand All @@ -118,7 +118,7 @@ if(TRACY_ENABLE)
list(APPEND MANIFOLD_FLAGS -DTRACY_MEMORY_USAGE)
endif()
if(NOT MSVC)
list(APPEND CMAKE_CXX_FLAGS -fno-omit-frame-pointer)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer")
endif()
else()
option(CMAKE_BUILD_TYPE "Build type" Release)
Expand Down

0 comments on commit de58f27

Please sign in to comment.