This commit is contained in:
Andrei Astafev 2022-10-06 23:51:33 +03:00
parent dbf3fe4d0e
commit 87918d40b3
5 changed files with 12 additions and 6 deletions

View File

@ -30,9 +30,15 @@ include(${MYXX_CMAKE_LIB_DIR}/pvs-studio/PVS-Studio.cmake)
include(${MYXX_CMAKE_LIB_DIR}/AnalyzePvsStudio.cmake)
function(myxx)
get_property(targets DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} PROPERTY BUILDSYSTEM_TARGETS)
foreach(iter ${targets})
# Свойство BUILDSYSTEM_TARGETS доступно в CMake только с версии 3.7
# Более старые конфигурации придётся настраивать вручную
if(${CMAKE_VERSION} VERSION_LESS "3.7.0")
myx_message_warning("MyxxCMake: automated setup is only available for CMake 3.7+")
return()
endif()
get_property(targets DIRECTORY ${CMAKE_BINARY_DIR} PROPERTY BUILDSYSTEM_TARGETS)
foreach(iter ${targets})
get_target_property(target_type ${iter} TYPE)
if(NOT ${target_type} STREQUAL "UTILITY")
myxx_code_coverage(${iter})

View File

@ -1,4 +1,4 @@
set(MYXX_CMAKE_PACKAGE_VERSION "2.0.2")
set(MYXX_CMAKE_PACKAGE_VERSION "2.0.3")
if(MYXX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()

View File

@ -1 +1 @@
2.0.2
2.0.3

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
project(myxx-cmake VERSION 2.0.2 LANGUAGES)
project(myxx-cmake VERSION 2.0.3 LANGUAGES)
include(GNUInstallDirs)
file(WRITE ${CMAKE_SOURCE_DIR}/MyxxCMake/MyxxCMakeConfigVersion.cmake

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
myxx-cmake (2.0.2) unstable; urgency=medium
myxx-cmake (2.0.3) unstable; urgency=medium
* New version.