diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-06 21:56:02 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-08 00:25:17 +0200 |
| commit | d57cd4ad822579257100a09a45b9c94c1919a705 (patch) | |
| tree | 55d5954eca81a30c5d3503b68d9d5ed4cbcb177a | |
| parent | a5f2f1a4bac2a947771a3d5cbb40a01208ca1112 (diff) | |
| download | rts-d57cd4ad822579257100a09a45b9c94c1919a705.tar.gz | |
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 ..
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files 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) |
