summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-19 15:01:02 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-19 15:01:02 +0100
commit019a38b9553b903fbcd0dbafecb1a3d418ee05a9 (patch)
tree2ecde0316de9f051284bfc14cec3f255e03c1b7a /CMakeLists.txt
parent2ae776318e6c92079528c35f3f5faf81f54fa10e (diff)
chore! remove entire `run-after-build` on JSON targets.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
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")