shithub: cstory

Download patch

ref: 7d4fda54ef298b36ff01589dcd49ea8ed4f99233
parent: b84601cceb904f82135e10094aae3fdb24725801
author: Clownacy <[email protected]>
date: Sat Mar 14 18:50:04 EDT 2020

Fix errors

--- a/DoConfig/CMakeLists.txt
+++ b/DoConfig/CMakeLists.txt
@@ -11,10 +11,10 @@
 # Make some tweaks if we're using MSVC
 if(MSVC)
 	# 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
-	target_compile_options(CSE2 PRIVATE "/utf-8")
+	target_compile_options(DoConfig PRIVATE "/utf-8")
 endif()
 
 if(LTO)
@@ -23,7 +23,7 @@
 	check_ipo_supported(RESULT result)
 
 	if(result)
-		set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
+		set_target_properties(DoConfig PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
 	endif()
 endif()
 
--- a/bin2h/CMakeLists.txt
+++ b/bin2h/CMakeLists.txt
@@ -15,10 +15,10 @@
 # Make some tweaks if we're using MSVC
 if(MSVC)
 	# 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
-	target_compile_options(CSE2 PRIVATE "/utf-8")
+	target_compile_options(bin2h PRIVATE "/utf-8")
 endif()
 
 if(LTO)
@@ -27,7 +27,7 @@
 	check_ipo_supported(RESULT result)
 
 	if(result)
-		set_target_properties(CSE2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
+		set_target_properties(bin2h PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
 	endif()
 endif()