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 ..
This commit is contained in:
parent
a5f2f1a4ba
commit
d57cd4ad82
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue