diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 01284a9..909e9a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,8 @@ # // Copyright (C) 2025, Amlal El Mahrouss, licensed under BSD-3 license. # // ============================================================= // -cmake_minimum_required(VERSION 3.16) +# AMLALE: Update the CMake version, which requires a version that was too old. +cmake_minimum_required(VERSION 4.00) project(nebuild VERSION 0.1 LANGUAGES CXX) @@ -23,6 +24,7 @@ target_include_directories(nebuild PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_S option(BUILD_WINDOWS "Produce a Windows executable name (nebuild.exe)" OFF) +# Append .exe when it's a Windows build (The Windows loader requires it) if(BUILD_WINDOWS) set_target_properties(nebuild PROPERTIES OUTPUT_NAME "nebuild.exe") endif() @@ -37,7 +39,6 @@ add_custom_target(build-nebuild-windows COMMENT "=> NeBuild built successfully for Windows (configure with -DBUILD_WINDOWS=ON)." ) -message(STATUS "Project: nebuild") message(STATUS "Sources: ${NEBUILD_SOURCES}") message(STATUS "Include dirs: ${CMAKE_SOURCE_DIR}/src;${CMAKE_SOURCE_DIR}/vendor") message(STATUS "To build for Windows-style executable: configure with -DBUILD_WINDOWS=ON") |
