From 3e82443534605b8ad03dc9cdd880ece2220ae09c Mon Sep 17 00:00:00 2001 From: lesleyrs <19632758+lesleyrs@users.noreply.github.com> Date: Fri, 26 Jan 2024 00:43:40 +0100 Subject: [PATCH] The minimum required cmake supports the updated way of building --- Working-with-CMake.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Working-with-CMake.md b/Working-with-CMake.md index 26c09ab..0d51bfe 100644 --- a/Working-with-CMake.md +++ b/Working-with-CMake.md @@ -19,11 +19,9 @@ if (APPLE) target_link_libraries(${PROJECT_NAME} "-framework OpenGL") endif() ``` -To build, use these commands: +To generate build files in separate directory and build the project, use these commands: ```cmake -mkdir build # Create a build directory -cd build && cmake .. # Build from that directory so the build files are in one place -cmake --build . # Build the project +cmake -B build && cmake --build build ``` ## Loading raylib inside cmake