This is an automated email from the ASF dual-hosted git repository.
szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 8d7c6c56a MINIFICPP-2355 Fix build if CMAKE_BUILD_TYPE is undefined
8d7c6c56a is described below
commit 8d7c6c56a0322a017bc79b95acf89f919b9ac75f
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Tue Apr 30 18:50:18 2024 +0200
MINIFICPP-2355 Fix build if CMAKE_BUILD_TYPE is undefined
Closes #1774
Signed-off-by: Marton Szasz <[email protected]>
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68aafeee9..fa7a6c63f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,6 +25,10 @@ cmake_policy(SET CMP0135 NEW) # policy to set the timestamps
of extracted conten
project(nifi-minifi-cpp VERSION 0.99.0)
set(PROJECT_NAME "nifi-minifi-cpp")
+if (NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)
+endif()
+
# Optional build number for linux distribution targets' tar.gz output
set(BUILD_NUMBER "" CACHE STRING "Build number")