ftxui_set_options: properly check the current compiler. (#802)

This solve the issue encountered when using clang under MSVC.
This commit is contained in:
nyako 2024-01-08 03:05:41 -03:00 committed by ArthurSonzogni
parent aceabdb4d4
commit 2759cfab8d
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -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()