Commit a14f2bbf authored by James Zern's avatar James Zern

cmake: fix setting CMAKE_BUILD_TYPE default

this needs to be a forced cache variable in the case it doesn't exist

Change-Id: I6b20a93798a5f0ef472170d5892545d21acc7c43
parent d8dac22f
......@@ -11,8 +11,9 @@
cmake_minimum_required(VERSION 3.5)
if (NOT EMSCRIPTEN)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE
"Build type: Debug, Release, RelWithDebInfo or MinSizeRel" STRING FORCE)
endif ()
endif ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment