diff options
author | ggfan <gfan@google.com> | 2018-07-31 22:58:58 -0700 |
---|---|---|
committer | ggfan <gfan@google.com> | 2018-07-31 23:08:44 -0700 |
commit | c6ffd521002fc4fb041169bb45203ecc0a509a36 (patch) | |
tree | 408ea764edfbb739191f1dd3f987aec6e86f5336 /samples/hello-oboe | |
parent | 9fd786aeb7c93fa8d0f0cb511b45ec606bd01dd9 (diff) | |
download | oboe-c6ffd521002fc4fb041169bb45203ecc0a509a36.tar.gz |
addressing code review requests for -Ofast flag
Diffstat (limited to 'samples/hello-oboe')
-rw-r--r-- | samples/hello-oboe/CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/samples/hello-oboe/CMakeLists.txt b/samples/hello-oboe/CMakeLists.txt index 8eefd4dd..b1945778 100644 --- a/samples/hello-oboe/CMakeLists.txt +++ b/samples/hello-oboe/CMakeLists.txt @@ -16,8 +16,6 @@ cmake_minimum_required(VERSION 3.4.1) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror") - ### INCLUDE OBOE LIBRARY ### # Set the path to the Oboe library directory @@ -56,4 +54,4 @@ target_link_libraries(hello-oboe android log oboe) # Enable optimization flags: if having problems with source level debugging, # disable -Ofast ( and debug ), re-enable after done debugging. -target_compile_options(hello-oboe PRIVATE -std=c++14 -Wall -Werror -Ofast) +target_compile_options(hello-oboe PRIVATE -Wall -Werror "$<$<CONFIG:RELEASE>:-Ofast>") |