Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.25)
cmake_policy(SET CMP0096 NEW) # policy to preserve the leading zeros in PROJECT_VERSION_{MAJOR,MINOR,PATCH,TWEAK}
cmake_policy(SET CMP0135 NEW) # policy to set the timestamps of extracted contents to the time of extraction

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Communicating with Apache NiFi can be done using the Site-to-Site protocol. More
### To build

#### Utilities
* CMake 3.24 or greater
* CMake 3.25 or greater
* Compiler
* g++ 13 or greater
* clang 18 or greater
Expand Down
10 changes: 10 additions & 0 deletions cmake/AzureSdkCpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ if (WIN32)
set(WIL_BUILD_TESTS OFF CACHE INTERNAL "")
set(WIL_BUILD_PACKAGING OFF CACHE INTERNAL "")

set(WIL_PATCH_FILE_1 "${CMAKE_SOURCE_DIR}/thirdparty/wil/cmake_version.patch")
set(WIL_PC ${Bash_EXECUTABLE} -c "set -x &&\
(\\\"${Patch_EXECUTABLE}\\\" -p1 -R -s -f --dry-run -i \\\"${WIL_PATCH_FILE_1}\\\" || \\\"${Patch_EXECUTABLE}\\\" -p1 -N -i \\\"${WIL_PATCH_FILE_1}\\\")")

FetchContent_Declare(
wil
URL https://github.com/microsoft/wil/archive/refs/tags/v1.0.260126.7.tar.gz
URL_HASH SHA256=de9e03b38ff0ff8d22048f00b111cb631d21c550328f12530ccba71c05c9e361
PATCH_COMMAND "${WIL_PC}"
SYSTEM
)
FetchContent_MakeAvailable(wil)
Expand Down Expand Up @@ -62,6 +67,11 @@ FetchContent_Declare(asdkext

FetchContent_MakeAvailable(asdkext)

if (WIN32)
# Azure SDK changes C++ standard to C++14 which needs to be overridden back to C++17 required by the WIL library on Windows
set_target_properties(azure-identity PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON)
endif()

if (NOT WIN32)
add_dependencies(azure-storage-common LibXml2::LibXml2)
add_dependencies(azure-data-tables LibXml2::LibXml2)
Expand Down
10 changes: 4 additions & 6 deletions cmake/ExpressionLanguage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,20 @@ if(WIN32)
if(NOT winflexbison_POPULATED)
FetchContent_Populate("winflexbison")
execute_process(
COMMAND ${CMAKE_COMMAND} .
COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release .
WORKING_DIRECTORY ${winflexbison_SOURCE_DIR}
COMMAND_ERROR_IS_FATAL ANY
)

execute_process(
COMMAND ${CMAKE_COMMAND} --build . --config RelWithDebInfo
COMMAND ${CMAKE_COMMAND} --build . --config Release
WORKING_DIRECTORY ${winflexbison_SOURCE_DIR}
COMMAND_ERROR_IS_FATAL ANY
)

file(COPY ${winflexbison_SOURCE_DIR}/bison/Data DESTINATION ${winflexbison_SOURCE_DIR}/bison/RelWithDebInfo/)
endif()

set(BISON_EXECUTABLE "${winflexbison_SOURCE_DIR}/bison/RelWithDebInfo/win_bison.exe" CACHE PATH "bison executable")
set(FLEX_EXECUTABLE "${winflexbison_SOURCE_DIR}/flex/RelWithDebInfo/win_flex.exe" CACHE PATH "flex executable")
set(BISON_EXECUTABLE "${winflexbison_SOURCE_DIR}/bin/Release/win_bison.exe" CACHE PATH "bison executable")
set(FLEX_EXECUTABLE "${winflexbison_SOURCE_DIR}/bin/Release/win_flex.exe" CACHE PATH "flex executable")

include_directories(${winflexbison_SOURCE_DIR}/flex/src/)

Expand Down
2 changes: 1 addition & 1 deletion controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.25)
cmake_policy(SET CMP0135 NEW) # policy to set the timestamps of extracted contents to the time of extraction

include_directories(../minifi_main/ ../libminifi/include ../libminifi/include/c2 ../libminifi/include/c2/protocols/ ../libminifi/include/core/state ./libminifi/include/core/statemanagement/metrics ../libminifi/include/core/yaml ../libminifi/include/core)
Expand Down
2 changes: 1 addition & 1 deletion extensions/ExtensionHeader.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
# under the License.
#

cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.25)

2 changes: 1 addition & 1 deletion libminifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

cmake_minimum_required (VERSION 3.24)
cmake_minimum_required (VERSION 3.25)
cmake_policy(SET CMP0096 NEW) # policy to preserve the leading zeros in PROJECT_VERSION_{MAJOR,MINOR,PATCH,TWEAK}
cmake_policy(SET CMP0135 NEW) # policy to set the timestamps of extracted contents to the time of extraction
project(nifi-libcore-minifi VERSION 1.0.0)
Expand Down
2 changes: 1 addition & 1 deletion minifi_main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.25)
cmake_policy(SET CMP0135 NEW) # policy to set the timestamps of extracted contents to the time of extraction

include_directories(../libminifi/include)
Expand Down
10 changes: 10 additions & 0 deletions thirdparty/wil/cmake_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb1f874..6f0a539 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.29)
+cmake_minimum_required(VERSION 3.25)
project(WIL)

include(GNUInstallDirs)
Loading