shithub: cstory

Download patch

ref: f1a85d4d2c24818a54fed36c93aab6011bd48403
parent: 07f70200d06d1cfa2e0d2841d8f91e21228bd05f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Sep 8 08:55:19 EDT 2020

Fix Wii U compilation

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -451,12 +451,14 @@
 	C_EXTENSIONS OFF
 )
 
-# Force strict C++98
-set_target_properties(CSE2 PROPERTIES
-	CXX_STANDARD 98
-	CXX_STANDARD_REQUIRED ON
-	CXX_EXTENSIONS OFF
-)
+if(NOT BACKEND_PLATFORM MATCHES "WiiU")
+	# Force strict C++98
+	set_target_properties(CSE2 PROPERTIES
+		CXX_STANDARD 98
+		CXX_STANDARD_REQUIRED ON
+		CXX_EXTENSIONS OFF
+	)
+endif()
 
 # Name debug builds "CSE2_debug", to distinguish them
 set_target_properties(CSE2 PROPERTIES DEBUG_OUTPUT_NAME "CSE2_debug")