From 6d444779582b74924aad7856dc3b2e3d16c70755 Mon Sep 17 00:00:00 2001 From: Tri11Paragon Date: Thu, 13 Mar 2025 13:06:18 -0700 Subject: [PATCH] add msvc check --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 618e338..5d3d71e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,8 +168,10 @@ macro(blt_add_test name source type) target_link_libraries(${name}-${type} PRIVATE BLT) - target_compile_options(${name}-${type} PRIVATE -Wall -Wextra -Wpedantic -Wno-comment) - target_link_options(${name}-${type} PRIVATE -Wall -Wextra -Wpedantic -Wno-comment) + if (NOT MSVC) + target_compile_options(${name}-${type} PRIVATE -Wall -Wextra -Wpedantic -Wno-comment) + target_link_options(${name}-${type} PRIVATE -Wall -Wextra -Wpedantic -Wno-comment) + endif() target_compile_definitions(${name}-${type} PRIVATE BLT_DEBUG_LEVEL=${DEBUG_LEVEL}) if (${TRACK_ALLOCATIONS})