diff --git a/MyxCMakeConfigVersion.cmake b/MyxCMakeConfigVersion.cmake index 0f92cff..5448a02 100644 --- a/MyxCMakeConfigVersion.cmake +++ b/MyxCMakeConfigVersion.cmake @@ -1,4 +1,4 @@ -set(MYX_CMAKE_PACKAGE_VERSION "1.99.20") +set(MYX_CMAKE_PACKAGE_VERSION "1.99.21") if(MYX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) set(PACKAGE_VERSION_COMPATIBLE FALSE) else() diff --git a/README.md b/README.md index 7bb413a..c9b8d8f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ```cmake if(MYX_CMAKE_USE_SYSTEM) - find_package(MyxCMake 1.99.20 REQUIRED) + find_package(MyxCMake 1.99.21 REQUIRED) else() include(${PROJECT_SOURCE_DIR}/cmake/myx/MyxCMakeConfig.cmake) endif() diff --git a/lib/AddLibrary.cmake b/lib/AddLibrary.cmake index 4156041..c01aae9 100644 --- a/lib/AddLibrary.cmake +++ b/lib/AddLibrary.cmake @@ -108,7 +108,7 @@ function(myx_add_library NAME TYPE) # При этом сама цель `${NAME}` может участвовать в сборке, # если окажется в перечне зависимостей. if(NOT PROJECT_IS_TOP_LEVEL) - set_target_properties(${NAME} PROPERTIES EXCLUDE_FROM_ALL True + set_target_properties(${NAME} PROPERTIES EXCLUDE_FROM_ALL True) return() endif() @@ -205,6 +205,4 @@ function(myx_add_library NAME TYPE) COMPONENT lib ) endif() - - endfunction() diff --git a/lib/FetchContentAdd.cmake b/lib/FetchContentAdd.cmake index 431fa3d..6da7051 100644 --- a/lib/FetchContentAdd.cmake +++ b/lib/FetchContentAdd.cmake @@ -25,6 +25,7 @@ function(FetchContent_Add NAME) ${NAME} ${ARG_UNPARSED_ARGUMENTS} GIT_REPOSITORY ${ARG_GIT_REPOSITORY} + GIT_SHALLOW 1 ) if(NOT ${NAME}_POPULATED)