Fix errors

This commit is contained in:
Clownacy 2020-03-14 22:50:04 +00:00
parent b84601cceb
commit 7d4fda54ef
2 changed files with 6 additions and 6 deletions

View file

@ -11,10 +11,10 @@ add_executable(DoConfig WIN32 "DoConfig.cpp" "icon.rc")
# Make some tweaks if we're using MSVC # Make some tweaks if we're using MSVC
if(MSVC) if(MSVC)
# Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions # Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions
target_compile_definitions(CSE2 PRIVATE _CRT_SECURE_NO_WARNINGS) target_compile_definitions(DoConfig PRIVATE _CRT_SECURE_NO_WARNINGS)
# Make it so source files are recognized as UTF-8 by MSVC # Make it so source files are recognized as UTF-8 by MSVC
target_compile_options(CSE2 PRIVATE "/utf-8") target_compile_options(DoConfig PRIVATE "/utf-8")
endif() endif()
if(LTO) if(LTO)
@ -23,7 +23,7 @@ if(LTO)
check_ipo_supported(RESULT result) check_ipo_supported(RESULT result)
if(result) if(result)
set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE) set_target_properties(DoConfig PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
endif() endif()
endif() endif()

View file

@ -15,10 +15,10 @@ set_target_properties(bin2h PROPERTIES
# Make some tweaks if we're using MSVC # Make some tweaks if we're using MSVC
if(MSVC) if(MSVC)
# Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions # Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions
target_compile_definitions(CSE2 PRIVATE _CRT_SECURE_NO_WARNINGS) target_compile_definitions(bin2h PRIVATE _CRT_SECURE_NO_WARNINGS)
# Make it so source files are recognized as UTF-8 by MSVC # Make it so source files are recognized as UTF-8 by MSVC
target_compile_options(CSE2 PRIVATE "/utf-8") target_compile_options(bin2h PRIVATE "/utf-8")
endif() endif()
if(LTO) if(LTO)
@ -27,7 +27,7 @@ if(LTO)
check_ipo_supported(RESULT result) check_ipo_supported(RESULT result)
if(result) if(result)
set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE) set_target_properties(bin2h PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
endif() endif()
endif() endif()