Fix bin2h to use C_COMPILER_ID instead of CXX_COMPILER_ID
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
94442d9ce3
commit
2f9f9aaf0f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ if(MSVC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Make it so source files are recognized as UTF-8 by MSVC
|
# 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
|
# Enable link-time optimisation if available
|
||||||
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
|
Loading…
Add table
Reference in a new issue