From 05fe07ccfcf3d5b2f95967df9bd28231d83ec4d8 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Thu, 4 Jan 2018 19:41:02 -0500 Subject: [PATCH] build demo by default with emscripten (no option) --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a3f8508..43557d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,13 @@ include(CreateSourceGroups) # ############################################################################## option(FS1 "Build original FreeSpace" OFF) -option(DEMO "Create demo build" OFF) + +if(EMSCRIPTEN) + # only build for demo with emscripten + set(DEMO 1) +else() + option(DEMO "Create demo build" OFF) +endif() if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.") -- 2.39.2