Skip to content

Commit c7ee029

Browse files
committed
fix MSVC build
1 parent 13484a5 commit c7ee029

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set(BUILD_SHARED_LIBS Off CACHE STRING "")
2626
message(STATUS "CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}")
2727
message(STATUS "CXX_SIMULATE_ID: ${CMAKE_CXX_SIMULATE_ID}")
2828

29-
if (NOT CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
29+
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC" AND NOT CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
3030
add_compile_options(-fsanitize=address)
3131
add_link_options(-fsanitize=address)
3232
endif()

external/jupyter-xeus/cpp-terminal/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FetchContent_Declare(
66

77
set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL On)
88

9-
if (NOT CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
9+
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC" AND NOT CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
1010
add_compile_options(
1111
-Wno-unused-variable
1212
-Wno-unused-but-set-variable

0 commit comments

Comments
 (0)