Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion cmake/Sanitizers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,20 @@ function(
endif()
elseif(MSVC)
if(${ENABLE_SANITIZER_ADDRESS})
list(APPEND SANITIZERS "address")
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
message(WARNING "MSVC only supports address sanitizer in release builds")
else()
list(APPEND SANITIZERS "address")
cmake_path(GET CMAKE_CXX_COMPILER PARENT_PATH MSVC_TOOLS_DIR)
install(
FILES
"${MSVC_TOOLS_DIR}/clang_rt.asan_dbg_dynamic-x86_64.dll"
"${MSVC_TOOLS_DIR}/clang_rt.asan_dbg_dynamic-x86_64.pdb"
"${MSVC_TOOLS_DIR}/clang_rt.asan_dynamic-x86_64.dll"
"${MSVC_TOOLS_DIR}/clang_rt.asan_dynamic-x86_64.pdb"
TYPE BIN
)
endif()
endif()
if(${ENABLE_SANITIZER_LEAK}
OR ${ENABLE_SANITIZER_UNDEFINED_BEHAVIOR}
Expand Down
1 change: 1 addition & 0 deletions src/ftxui_sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ target_link_system_libraries(
ftxui::component)

target_include_directories(intro PRIVATE "${CMAKE_BINARY_DIR}/configured_files/include")