shithub: cstory

Download patch

ref: 2f9f9aaf0f3a6f8f432192787e1fc6ff4b818588
parent: 94442d9ce380fa5154c9e4f7105a6c1943503628
author: Gabriel Ravier <gabravier@gmail.com>
date: Mon Oct 28 15:21:46 EDT 2019

Fix bin2h to use C_COMPILER_ID instead of CXX_COMPILER_ID

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/bin2h/CMakeLists.txt
+++ b/bin2h/CMakeLists.txt
@@ -20,7 +20,7 @@
 endif()
 
 # Make it so source files are recognized as UTF-8 by MSVC
-add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
+add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
 
 # Enable link-time optimisation if available
 if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
--