You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
772 B

  1. --- 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. # CMake
  15. if("${CMAKE_BUILD_TYPE}" STREQUAL "")
  16. @@ -98,12 +101,6 @@ option(DOCUMENTATION "Generate API docum
  17. find_package(Doxygen)
  18. if(DOCUMENTATION AND DOXYGEN_FOUND)
  19. -
  20. - # Set variables
  21. - set(PACKAGE libftdi)
  22. - set(VERSION ${VERSION_STRING})
  23. - set(top_srcdir ${CMAKE_SOURCE_DIR})
  24. -
  25. # Find doxy config
  26. message(STATUS "Doxygen found.")
  27. set(DOXY_DIR "${CMAKE_SOURCE_DIR}/doc")