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] 修改部分因为标准原因的报错

---
 src/CMakeLists.txt |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2cb7080..fcff40d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,11 +1,11 @@
+IF (NOT LCC_PROJECT_MAGIC_NUM) 
+	set(LCC_PROJECT_MAGIC_NUM 0)  
+ENDIF (NOT LCC_PROJECT_MAGIC_NUM)
+
+IF(NOT EXISTS "${LCC_INCLUDE_DIR}/licensecc_properties.h")
+	configure_file ("templates/licensecc_properties.h.in" 
+		"${LCC_INCLUDE_DIR}/licensecc_properties.h")
+ENDIF(NOT EXISTS "${LCC_INCLUDE_DIR}/licensecc_properties.h")
+
 add_subdirectory("library")
 
-
-configure_file (
-	"templates/licensecc_properties_test.h.in" 
-	"${CMAKE_BINARY_DIR}/licensecc_properties_test.h"
-)
-configure_file (
-	"templates/licensecc_properties.h.in" 
-	"${LCC_INCLUDE_DIR}/licensecc_properties.h"
-)
\ No newline at end of file

--
Gitblit v1.9.1