2
0
Эх сурвалжийг харах

Added optimization flag (-O1) for the GCC compiler on Windows platform to prevent "CGameState.cpp.obj: too many sections" compile error

NikolayIT 11 жил өмнө
parent
commit
3d3713ae7f
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -75,7 +75,9 @@ if (WIN32)
 		#copy libwinpthread-*.dll, libgcc_s_*.dll and libstdc++-*.dll to VCMI location
 		set(dep_files ${dep_files} "${MINGW_BIN_PATH}/libwinpthread-*.dll") 
 		set(dep_files ${dep_files} "${MINGW_BIN_PATH}/libgcc_s_*.dll") 
-		set(dep_files ${dep_files} "${MINGW_BIN_PATH}/libstdc++-*.dll") 
+		set(dep_files ${dep_files} "${MINGW_BIN_PATH}/libstdc++-*.dll")
+
+		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O1")
 	endif()
 endif()