[Scummvm-git-logs] scummvm master -> 3e3589cf708e8bda90f7497c382b63fc8756fc3a

orgads noreply at scummvm.org
Mon May 5 12:56:17 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
3e3589cf70 CREATE_PROJECT: Set RELEASE_BUILD also for cmake


Commit: 3e3589cf708e8bda90f7497c382b63fc8756fc3a
    https://github.com/scummvm/scummvm/commit/3e3589cf708e8bda90f7497c382b63fc8756fc3a
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2025-05-05T15:56:14+03:00

Commit Message:
CREATE_PROJECT: Set RELEASE_BUILD also for cmake

Changed paths:
    devtools/create_project/cmake.cpp


diff --git a/devtools/create_project/cmake.cpp b/devtools/create_project/cmake.cpp
index 517d97db01f..e8394dc6c62 100644
--- a/devtools/create_project/cmake.cpp
+++ b/devtools/create_project/cmake.cpp
@@ -89,6 +89,9 @@ void CMakeProvider::createWorkspace(const BuildSetup &setup) {
 
 	workspace << R"(set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 set(CMAKE_CXX_STANDARD 11) # Globally enable C++11
+if(CMAKE_BUILD_TYPE STREQUAL "Release")
+	add_definitions(-DRELEASE_BUILD)
+endif()
 
 find_package(PkgConfig QUIET)
 include(CMakeParseArguments)




More information about the Scummvm-git-logs mailing list