mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update files of project
This commit is contained in:
parent
3844d85547
commit
ea52ed76a9
@ -1,8 +1,8 @@
|
||||
# Get the last tag.
|
||||
function(sak_git_get_last_tag prefix)
|
||||
function(sak_git_get_last_tag working_dir prefix)
|
||||
execute_process(
|
||||
COMMAND ${GIT_EXECUTABLE} describe --abbrev=0 --tags
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
COMMAND git describe --abbrev=0 --tags
|
||||
WORKING_DIRECTORY ${working_dir}
|
||||
OUTPUT_VARIABLE GIT_LATEST_TAG
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
message("Latest git tag: ${GIT_LATEST_TAG}")
|
||||
|
||||
@ -23,6 +23,7 @@ set(SAK_QT_COMPONENTS
|
||||
SerialBus)
|
||||
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS ${SAK_QT_COMPONENTS})
|
||||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ${SAK_QT_COMPONENTS})
|
||||
add_compile_definitions(SAK_BUILD_WITH_SAK)
|
||||
|
||||
if(NOT Qt6_VERSION VERSION_LESS "6.5.0")
|
||||
find_package(Qt${QT_VERSION_MAJOR} QUIET COMPONENTS Bluetooth)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user