Skip to content

Commit

Permalink
refactor(build): Remove support for CMake version less than 3.12
Browse files Browse the repository at this point in the history
Was already deactivated before.
  • Loading branch information
jpfr committed Jun 4, 2024
1 parent c39effb commit 46c5caa
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1,543 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
cmake_minimum_required(VERSION 3.13)

if(UA_BUILD_FUZZING OR UA_BUILD_OSS_FUZZ OR UA_BUILD_FUZZING_CORPUS)
project(open62541) # We need to have C++ support configured for fuzzing
else()
project(open62541 C) # Do not look for a C++ compiler
endif()

# set(CMAKE_VERBOSE_MAKEFILE ON)
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()

string(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE_LOWER_CASE)

set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/tools/cmake")
if(${CMAKE_VERSION} VERSION_LESS 3.12)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/tools/cmake3.12")
endif()

find_package(Python3 REQUIRED)

find_package(Git)

include(AssignSourceGroup)
include(GNUInstallDirs)
include(open62541Macros)
Expand Down
32 changes: 0 additions & 32 deletions tools/cmake3.12/CMakeFindFrameworks.cmake

This file was deleted.

Loading

0 comments on commit 46c5caa

Please sign in to comment.