Skip to content

Commit

Permalink
Bump cmake requirements in subprojects too
Browse files Browse the repository at this point in the history
DarthGandalf committed Sep 30, 2023
1 parent 72d1544 commit 2b9a582
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmake/cxx11check/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
# limitations under the License.
#

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.13)
project(cxx11check LANGUAGES CXX)
set(CMAKE_VERBOSE_MAKEFILE true)

2 changes: 1 addition & 1 deletion cmake/perl_check/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
# limitations under the License.
#

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.13)
project(perl_check LANGUAGES CXX)
set(CMAKE_VERBOSE_MAKEFILE true)

5 changes: 0 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -14,11 +14,6 @@
# limitations under the License.
#

if(CMAKE_VERSION VERSION_LESS 3.2)
# Since 3.2 it does this automatically from BYPRODUCTS
set_source_files_properties("versionc.cpp" PROPERTIES GENERATED true)
endif()

set(znc_cpp "ZNCString.cpp" "znc.cpp" "IRCNetwork.cpp" "Translation.cpp"
"IRCSock.cpp" "Client.cpp" "Chan.cpp" "Nick.cpp" "Server.cpp"
"Modules.cpp" "MD5.cpp" "Buffer.cpp" "Utils.cpp" "FileUtils.cpp"
2 changes: 1 addition & 1 deletion test/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
# limitations under the License.
#

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.13)
project(ZNCIntegrationTest LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
2 changes: 1 addition & 1 deletion znc-buildmod.cmake.in
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ args = parser.parse_args()

with tempfile.TemporaryDirectory() as cmdir:
with open(os.path.join(cmdir, 'CMakeLists.txt'), 'w') as cm:
print('cmake_minimum_required(VERSION 3.1)', file=cm)
print('cmake_minimum_required(VERSION 3.13)', file=cm)
print('project(ExternalModules LANGUAGES CXX)', file=cm)
print('find_package(ZNC @ZNC_VERSION_MAJOR@.@ZNC_VERSION_MINOR@ HINTS '
'@CMAKE_INSTALL_FULL_DATADIR@/znc REQUIRED)', file=cm)

0 comments on commit 2b9a582

Please sign in to comment.