From 9e61e23ad2ac72030f14ea59e502c19d52995f3a Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 4 Apr 2022 11:00:52 +0200 Subject: build: use libc++ --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6daeadb..679949b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,7 +51,7 @@ target_compile_options( -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror - -pedantic -fsanitize=address -fno-exceptions + -pedantic -fsanitize=address -fno-exceptions -stdlib=libc++ ) if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") @@ -64,6 +64,6 @@ endif() target_include_directories(${PROJECT_NAME} PRIVATE .) -target_link_libraries_system(${PROJECT_NAME} ctre fmt GSL) +target_link_libraries_system(${PROJECT_NAME} ctre fmt::fmt-header-only GSL) -target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=address) +target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=address -stdlib=libc++) -- cgit v1.2.3-18-g5258