From 0e779caae658f118d535e9f0a74f0012eefca9a0 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 2 Oct 2023 14:38:53 +0200 Subject: [PATCH] CMakeLists.txt: add cmake_minimum_required This command is mandatory for all CMake projects. 3.0 was chosen since dynstr does not require any newer CMake features. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be96416..6622657 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +cmake_minimum_required(VERSION 3.0) project(dynstr C) add_library(${PROJECT_NAME} STATIC "dynstr.c") target_include_directories(${PROJECT_NAME} PUBLIC "include")