Skip to content
Snippets Groups Projects
Unverified Commit cc3bcbf0 authored by nyako's avatar nyako Committed by GitHub
Browse files

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

This solve the issue encountered when using clang under MSVC.
parent d0634e1c
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ function(ftxui_set_options library) ...@@ -45,7 +45,7 @@ function(ftxui_set_options library)
# Force Microsoft Visual Studio to decode sources files in UTF-8. This applies # Force Microsoft Visual Studio to decode sources files in UTF-8. This applies
# to the library and the library users. # to the library and the library users.
if (MSVC) if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(${library} PUBLIC "/utf-8") target_compile_options(${library} PUBLIC "/utf-8")
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment