[host] cmake: force -O3 for release with debug builds

This commit is contained in:
Geoffrey McRae 2021-06-06 02:25:48 +10:00
parent 0d9b0bd367
commit 1d7eb50608

View File

@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.0)
project(looking-glass-host C)
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG" CACHE STRING "compiler flags" FORCE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG" CACHE STRING "compiler flags" FORCE)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
include(CheckCCompilerFlag)