Skip to content

Commit

Permalink
ftxui_set_options: properly check the current compiler. (#802)
Browse files Browse the repository at this point in the history
This solve the issue encountered when using clang under MSVC.
  • Loading branch information
nyyakko authored and ArthurSonzogni committed Dec 26, 2024
1 parent afb77c3 commit 6c38bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/ftxui_set_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function(ftxui_set_options library)

# Force Microsoft Visual Studio to decode sources files in UTF-8. This applies
# to the library and the library users.
if (MSVC)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(${library} PUBLIC "/utf-8")
endif()

Expand Down

0 comments on commit 6c38bbd

Please sign in to comment.