Skip to content

Commit 13484a5

Browse files
committed
fix clang-msvc build
1 parent 83c6e5a commit 13484a5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ FetchContent_Declare(
66

77
set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL On)
88

9-
add_compile_options(
10-
-Wno-unused-variable
11-
-Wno-unused-but-set-variable
12-
)
9+
if (NOT CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
10+
add_compile_options(
11+
-Wno-unused-variable
12+
-Wno-unused-but-set-variable
13+
)
14+
endif()
1315

1416
set(CPPTERMINAL_BUILD_EXAMPLES Off CACHE STRING "")
1517
set(CPPTERMINAL_ENABLE_INSTALL Off CACHE STRING "")

0 commit comments

Comments
 (0)