blob: e6861dcd9684410fe377f0c431fa420c15ab702a [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/CMakeLists.txt
2+++ b/CMakeLists.txt
3@@ -1,9 +1,12 @@
4 # Project
5 project(libftdi)
6+set(PACKAGE libftdi)
7 set(MAJOR_VERSION 0)
8 set(MINOR_VERSION 20)
9+set(VERSION ${VERSION_STRING})
10 set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
11-SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
12+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
13+set(top_srcdir ${CMAKE_SOURCE_DIR})
14
15 # CMake
16 if("${CMAKE_BUILD_TYPE}" STREQUAL "")
17@@ -98,12 +101,6 @@ option(DOCUMENTATION "Generate API docum
18
19 find_package(Doxygen)
20 if(DOCUMENTATION AND DOXYGEN_FOUND)
21-
22- # Set variables
23- set(PACKAGE libftdi)
24- set(VERSION ${VERSION_STRING})
25- set(top_srcdir ${CMAKE_SOURCE_DIR})
26-
27 # Find doxy config
28 message(STATUS "Doxygen found.")
29 set(DOXY_DIR "${CMAKE_SOURCE_DIR}/doc")