From 5bfaf2ce035d09a6f12af81bf99a46169a5890fc Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周六, 14 12月 2019 12:38:22 +0800
Subject: [PATCH] examples

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

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2cb7080..02e47aa 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,11 +1,7 @@
 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
+#for no reason overwrite it (maybe it's manually customized)
+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")
\ No newline at end of file

--
Gitblit v1.9.1