From 8553a8d63f97cfa8d64b5b2260e81f8c896a8398 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: 周五, 23 5月 2025 18:36:03 +0800 Subject: [PATCH] 修改部分因为标准原因的报错 --- CMakeLists.txt | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04c0cca..9dc35a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,8 @@ SET(CMAKE_DISABLE_IN_SOURCE_BUILD ON) IF(NOT LCC_PROJECT_NAME) - message(WARNING "You should define a variable LCC_PROJECT_NAME containing the name of the software you want to add a license to." - "A mock product named DEFAULT has been added for you.") + message(STATUS "You should define a variable LCC_PROJECT_NAME containing the name of the software you want to add a license to." + "A mock project named DEFAULT has been added for you.") set(LCC_PROJECT_NAME "DEFAULT" CACHE STRING "Project name (name of the software for which you want to issue a license)") ENDIF(NOT LCC_PROJECT_NAME) @@ -19,9 +19,9 @@ cmake_policy(SET CMP0048 NEW) #cmake_policy(SET CMP0091 NEW) project (licensecc - VERSION 2.0.0 - DESCRIPTION "Copy protection and licensing library" + VERSION 2.1.0 LANGUAGES CXX) +set(PROJECT_DESCRIPTION "Copy protection and licensing library") set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -131,7 +131,6 @@ message( STATUS "Project base dir : " ${LCC_PROJECTS_BASE_DIR}/${LCC_PROJECT_NAME} ) add_subdirectory(src) - #boost is required only for tests #bug in cmake win32 - can't find boost compiled with mingw if(WIN32 AND "x${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "x") -- Gitblit v1.9.1