From d57cd4ad822579257100a09a45b9c94c1919a705 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 6 Jun 2022 21:56:02 +0200 Subject: CMakeLists.txt: assume native build by default This has been decided to make the de-facto standard CMake build process (shown below) possible. $ mkdir build $ cd build/ $ cmake .. --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb20912..d17a131 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,11 +5,10 @@ option(HOST_BUILD "Build for host platform using SDL-1.2" OFF) option(WIN9X_BUILD "Build for Win9x using SDL-1.2" OFF) if(NOT PS1_BUILD AND NOT HOST_BUILD AND NOT WIN9X_BUILD) - message(FATAL_ERROR "Please define target platform. Available options: - PS1_BUILD - HOST_BUILD - WIN9X_BUILD - Run CMake again using one of the available platforms e.g.: cmake .. -DPS1_BUILD=1") + message(STATUS "Assuming native build. " +"Please use one of the available options in CMakeLists.txt to " +"cross-compile for a specific target.") + set(HOST_BUILD ON) endif() if(PS1_BUILD) -- cgit v1.2.3