Skip to content

Commit

Permalink
cmake: use CMAKE_CXX_COMPILER_ID to check the MSVC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Nov 24, 2024
1 parent dc9ef52 commit 0debca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ set(sources

source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES ${sources})

if (MSVC)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options(
# Setup warning level.
/W4
Expand Down

0 comments on commit 0debca9

Please sign in to comment.