From 62a974988d4c5d69c1fc845af54cce8d5dd01d40 Mon Sep 17 00:00:00 2001 From: Filip Szweda Date: Fri, 6 Oct 2023 10:49:52 +0200 Subject: [PATCH] Fix --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b48a32aa..5c205232 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,17 +35,17 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release") set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) endif() -if(${PROJECT_VERSION} STREQUAL "") +if("${PROJECT_VERSION}" STREQUAL "") message(FATAL_ERROR "Project version has not been provided\n Please, provide project version using -DPROJECT_VERSION") endif() -string(REGEX MATCH "([0-9]+)\.([0-9]+)\.([0-9]+)" _ ${PROJECT_VERSION}) +string(REGEX MATCH "([0-9]+)\.([0-9]+)\.([0-9]+)" _ "${PROJECT_VERSION}") if(NOT CMAKE_MATCH_COUNT EQUAL 3) message(FATAL_ERROR "Project version parsing failed\n Got: ${PROJECT_VERSION}") endif() project( - ${_project_name} VERSION ${PROJECT_VERSION} LANGUAGES C CXX + ${_project_name} VERSION "${PROJECT_VERSION}" LANGUAGES C CXX ) set(BPF_C_FLAGS ${BPF_C_FLAGS} -DTARGET_BPF)