Selaa lähdekoodia

Enabled optimizations for Distribution configuration on Android (#747)

This enables optimizations when building the Distribution configuration for Android, by simply copying the compile flags from CMAKE_CXX_FLAGS_RELEASE into CMAKE_CXX_FLAGS_DISTRIBUTION, which at the moment consists of -O3 and -DNDEBUG.
Mikael Hermansson 1 vuosi sitten
vanhempi
commit
d8e0fec253
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      Build/CMakeLists.txt

+ 2 - 0
Build/CMakeLists.txt

@@ -169,6 +169,8 @@ elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR "${CMAKE_SYSTEM_NAME}" STREQU
 
 	# Set linker flags
 	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
+elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
+	set(CMAKE_CXX_FLAGS_DISTRIBUTION "${CMAKE_CXX_FLAGS_RELEASE}")
 endif()
 
 # Set linker flags