We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 586e511 commit 24a70a8Copy full SHA for 24a70a8
cmake/build-info.cmake
@@ -42,7 +42,8 @@ endif()
42
if(MSVC)
43
set(BUILD_COMPILER "${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION}")
44
set(BUILD_TARGET ${CMAKE_VS_PLATFORM_NAME})
45
- add_compile_options("/utf-8")
+ add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
46
+ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>")
47
else()
48
execute_process(
49
COMMAND sh -c "$@ --version | head -1" _ ${CMAKE_C_COMPILER}
0 commit comments