From 13ae614ef681d5309e540a99536af0e007bc9a33 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Tue, 20 May 2025 13:29:41 +0200 Subject: [PATCH] fix build --- CMakeLists.txt | 3 ++- tests/CMakeLists.txt | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 962de2d..e2088c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 3.2) +CMAKE_MINIMUM_REQUIRED(VERSION 3.24) +PROJECT(libdice) INCLUDE(CheckFunctionExists) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2120b1c..5daa0db 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,5 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 3.2) +CMAKE_MINIMUM_REQUIRED(VERSION 3.24) +PROJECT(libdice) SET(TESTS "test_dice_evaluate" @@ -15,6 +16,6 @@ INCLUDE_DIRECTORIES( FOREACH(TEST ${TESTS}) ADD_EXECUTABLE(${TEST} ${TEST}.c) - TARGET_LINK_LIBRARIES(${TEST} dice ${CMOCKA_LIBRARIES}) + TARGET_LINK_LIBRARIES(${TEST} dice ${CMOCKA_LIBRARIES} "m") ADD_TEST(NAME "${TEST}" COMMAND ${TEST}) ENDFOREACH()