Skip to content

Commit

Permalink
Avoid warning in MSVC
Browse files Browse the repository at this point in the history
- Do not add fno-omit-frame-pointer in MSVC
  • Loading branch information
DavidAce committed Dec 8, 2023
1 parent 600326c commit 16a5da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ target_include_directories(headers SYSTEM INTERFACE $<INSTALL_INTERFACE:include>

# Setup sanitizer
if(H5PP_ENABLE_ASAN)
target_compile_options(flags INTERFACE -fsanitize=address -fno-omit-frame-pointer)
target_compile_options(flags INTERFACE -fsanitize=address $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fno-omit-frame-pointer>)
target_link_libraries(flags INTERFACE -fsanitize=address)
endif()

Expand Down

0 comments on commit 16a5da8

Please sign in to comment.