diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2022-12-27 21:56:28 +0100 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2022-12-27 21:56:28 +0100 |
| commit | f37c28cb52d0ea0808f25696ace26f6349fedffd (patch) | |
| tree | ca61ece7b1854af2a521dcb73a847da8b9c44778 | |
| parent | 8c2eda69a5d9ee40a4dc5f2cc5f43cd166e72064 (diff) | |
Replace AVP_BUILD_TYPE with AVP_WEB option
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4785615..fd7b802 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,19 +10,7 @@ IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") ENDIF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) -# default to Desktop build -IF(NOT AVP_BUILD_TYPE) - SET(AVP_BUILD_TYPE DESKTOP CACHE STRING "Executable type; one of: DESKTOP WEB" FORCE) -ENDIF(NOT AVP_BUILD_TYPE) - -IF(NOT AVP_BUILD_TYPE STREQUAL "DESKTOP" AND NOT AVP_BUILD_TYPE STREQUAL "WEB") - MESSAGE(FATAL_ERROR "Invalid AVP_BUILD_TYPE setting ${AVP_BUILD_TYPE}; must be one of DESKTOP WEB") -ENDIF(NOT AVP_BUILD_TYPE STREQUAL "DESKTOP" AND NOT AVP_BUILD_TYPE STREQUAL "WEB") - -SET(AVP_WEB "NO") -IF(AVP_BUILD_TYPE STREQUAL "WEB") - SET(AVP_WEB "YES") -ENDIF(AVP_BUILD_TYPE STREQUAL "WEB") +option(AVP_WEB "Build a WASM binary (untested)") PROJECT(avp) |
