SDL-Hercules-390 / SoftFloat

Berkeley IEEE Binary Floating-Point Library for use by the SDL-Hercules-390 emulator
7 stars 5 forks source link

Remove the requirement for a C++ compiler #3

Closed wrljet closed 3 years ago

wrljet commented 3 years ago

This change removes the requirement for a C++ compiler to be present for CMAKE. This is sometimes the situation on certain Linux distributions and removes a stumbling block for novice builders.

CMakeLists.txt:

From: https://cmake.org/cmake/help/latest/command/project.html

The top-level CMakeLists.txt file for a project must contain a literal, direct call to the project() command; loading one through the include() command is not sufficient. If no such call exists, CMake will issue a warning and pretend there is a project(Project) at the top to enable the default languages (C and CXX).

Note: Call the project() command near the top of the top-level CMakeLists.txt, but after calling cmake_minimum_required(). It is important to establish version and policy settings before invoking other commands whose behavior they may affect. See also policy CMP0000.

ParseBinaryDir.cmake:

Move requirement for languages to CMakeLists.txt's project() statement. Remove requirement for C++.

Fish-Git commented 3 years ago

THANK YOU! Merged!