From 50122b90158a05aaa84982aedb0c84092954fff0 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周日, 03 5月 2020 21:38:19 +0800
Subject: [PATCH] fix lccgen name

---
 cmake/Findlccgen.cmake |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/Findlccgen.cmake b/cmake/Findlccgen.cmake
index 0e11f1d..3bf3cbc 100644
--- a/cmake/Findlccgen.cmake
+++ b/cmake/Findlccgen.cmake
@@ -47,7 +47,7 @@
 
 if(LCC_LOCATION)
 	find_package(lccgen HINTS ${LCC_LOCATION} CONFIG) #try to find it without looping on this module
-	if(NOT lcc_FOUND)
+	if(NOT lccgen_FOUND)
 		find_program(LCC_EXECUTABLE
 		NAMES ${lcc_names} HINTS ${LCC_LOCATION} DOC "lccgen command line client")
 		FIND_PACKAGE_HANDLE_STANDARD_ARGS(lccgen FOUND_VAR LCC_FOUND
@@ -55,7 +55,7 @@
             	                           FAIL_MESSAGE "Error finding lcc executable. variable LCC_LOCATION non set correctly.")
     	add_executable(license_generator::lccgen IMPORTED GLOBAL)                                            
 		set_property(TARGET license_generator::lccgen PROPERTY IMPORTED_LOCATION ${LCC_EXECUTABLE})
-	ENDIF(NOT lcc_FOUND)
+	ENDIF(NOT lccgen_FOUND)
 ELSE(LCC_LOCATION)
 	find_package(lccgen HINTS ${CMAKE_BINARY_DIR} CONFIG) #try to find it without looping on this module
 

--
Gitblit v1.9.1