libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.5-48-g22b4667

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 4 Apr 2025 18:02:07 +0200 (CEST)
The branch, master has been updated
       via  22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03 (commit)
       via  5c3856d44fd339ba23194b0686f420f7a863942c (commit)
       via  2e97060691ca5fc8fea461d11d82ec9c939d301f (commit)
       via  503c8789db7cb99e4e53cae3c220f80aef07c785 (commit)
      from  ff7707e3ffadc09af420b26370b9e097a5b2bc8b (commit)


- Log -----------------------------------------------------------------
commit 22b4667a8c3bc483494ba735ba4ae4d5cb8a0f03
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date:   Wed Apr 2 10:12:37 2025 +0200

    CMakeLists.txt: remove CMAKE_COLOR_MAKEFILE assignment
    
    This variable is ON by default.

commit 5c3856d44fd339ba23194b0686f420f7a863942c
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date:   Wed Apr 2 10:12:36 2025 +0200

    CMakeLists.txt: ignore out-of-source build folder
    
    Create a .gitignore file inside a build folder. This way this folder
    will be ignored by git and hence, no entry in the root .gitignore is
    required.
    
    For more information see this post:
    https://www.scivision.dev/cmake-auto-gitignore-build-dir/

commit 2e97060691ca5fc8fea461d11d82ec9c939d301f
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date:   Wed Apr 2 10:12:35 2025 +0200

    CMakeLists.txt: enable CMAKE_EXPORT_COMPILE_COMMANDS by default
    
    This creates a compile_commands.json file that can then be used
    by the clangd tool.

commit 503c8789db7cb99e4e53cae3c220f80aef07c785
Author: Yegor Yefremov <yegorslists@xxxxxxxxxxxxxx>
Date:   Wed Apr 2 10:12:34 2025 +0200

    CMakeLists.txt: bump CMake version to 3.15
    
    This change fixes the following warning on the latest CMake versions:
    
    CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.10 will be removed from a future version
      of CMake.
    
      Update the VERSION argument <min> value.  Or, use the <min>...<max>
      syntax to tell CMake that the project requires at least <min> but has been
      updated to work with policies introduced by <max> or earlier.

-----------------------------------------------------------------------

Summary of changes:
 .gitignore     |    1 -
 CMakeLists.txt |   10 ++++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index b652e9f..34f3852 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,6 @@
 .deps/
 .libs/
 .kdev4/
-build/
 
 # kdevelop
 *.kdevelop.pcs
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 949cbf4..5494357 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
 
 message(STATUS "CMake version: ${CMAKE_VERSION}")
 
@@ -22,7 +22,13 @@ endif()
 if("${CMAKE_BUILD_TYPE}" STREQUAL "")
   set(CMAKE_BUILD_TYPE     RelWithDebInfo)
 endif("${CMAKE_BUILD_TYPE}" STREQUAL "")
-set(CMAKE_COLOR_MAKEFILE ON)
+
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+if(NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
+  # Auto-create a .gitignore in the out-of-source build directory.
+  file(GENERATE OUTPUT .gitignore CONTENT "*")
+endif()
 
 add_definitions(-Wall)
 


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.5-48-g22b4667, libftdi-git <=