2.1.92
This commit is contained in:
parent
764b541bfa
commit
7eedd8b932
@ -21,6 +21,7 @@ endif()
|
|||||||
find_package(Sanitizers REQUIRED)
|
find_package(Sanitizers REQUIRED)
|
||||||
|
|
||||||
include(${MYXX_CMAKE_LIB_DIR}/WarningFlags.cmake)
|
include(${MYXX_CMAKE_LIB_DIR}/WarningFlags.cmake)
|
||||||
|
include(${MYXX_CMAKE_LIB_DIR}/SyntaxCheck.cmake)
|
||||||
include(${MYXX_CMAKE_LIB_DIR}/Coverage.cmake)
|
include(${MYXX_CMAKE_LIB_DIR}/Coverage.cmake)
|
||||||
include(${MYXX_CMAKE_LIB_DIR}/AnalyzeApplyReplacements.cmake)
|
include(${MYXX_CMAKE_LIB_DIR}/AnalyzeApplyReplacements.cmake)
|
||||||
include(${MYXX_CMAKE_LIB_DIR}/AnalyzeClangTidy.cmake)
|
include(${MYXX_CMAKE_LIB_DIR}/AnalyzeClangTidy.cmake)
|
||||||
@ -51,7 +52,6 @@ function(myxx)
|
|||||||
(NOT ${__iter} MATCHES ".*_shared$" ) AND
|
(NOT ${__iter} MATCHES ".*_shared$" ) AND
|
||||||
(NOT ${__iter} MATCHES ".*_static$" )
|
(NOT ${__iter} MATCHES ".*_static$" )
|
||||||
)
|
)
|
||||||
message(${__target_type} ${__iter})
|
|
||||||
myxx_code_coverage(${__iter})
|
myxx_code_coverage(${__iter})
|
||||||
myxx_analyze_clang_tidy(${__iter})
|
myxx_analyze_clang_tidy(${__iter})
|
||||||
myxx_analyze_clang_tidy_naming(${__iter})
|
myxx_analyze_clang_tidy_naming(${__iter})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
set(MYXX_CMAKE_PACKAGE_VERSION "2.0.12")
|
set(MYXX_CMAKE_PACKAGE_VERSION "2.1.92")
|
||||||
if(MYXX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
if(MYXX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
||||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||||
else()
|
else()
|
||||||
|
18
MyxxCMake/lib/SyntaxCheck.cmake
Normal file
18
MyxxCMake/lib/SyntaxCheck.cmake
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
include_guard(GLOBAL)
|
||||||
|
|
||||||
|
option(MYXX_CMAKE_SYNTAX_CHECK_ONLY "only check syntax (-fsyntax-only)" OFF)
|
||||||
|
if(MYXX_CMAKE_SYNTAX_CHECK_ONLY)
|
||||||
|
if (NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") OR
|
||||||
|
(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")))
|
||||||
|
myx_message_warning("only clang and gcc support -fsyntax-only, using ${CMAKE_CXX_COMPILER_ID}")
|
||||||
|
else()
|
||||||
|
add_compile_options(-fsyntax-only)
|
||||||
|
set(CMAKE_CXX_COMPILE_OBJECT "${CMAKE_CXX_COMPILE_OBJECT} && touch <OBJECT>")
|
||||||
|
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "touch <TARGET>")
|
||||||
|
set(CMAKE_CXX_CREATE_SHARED_MODULE "touch <TARGET>")
|
||||||
|
set(CMAKE_CXX_LINK_EXECUTABLE "touch <TARGET>")
|
||||||
|
set(CMAKE_CXX_ARCHIVE_CREATE "touch <TARGET>")
|
||||||
|
set(CMAKE_CXX_ARCHIVE_APPEND "touch <TARGET>")
|
||||||
|
set(CMAKE_CXX_ARCHIVE_FINISH "touch <TARGET>")
|
||||||
|
endif()
|
||||||
|
endif()
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
## Установка
|
## Установка
|
||||||
|
|
||||||
Скачать [пакет](../../../releases/download/2.0.12/myxx-cmake_2.0.12_all.deb)
|
Скачать [пакет](../../../releases/download/2.1.92/myxx-cmake_2.1.92_all.deb)
|
||||||
для Debian и установить его, выполнив команду `sudo dpkg -i myxx-cmake_2.0.12_all.deb`,
|
для Debian и установить его, выполнив команду `sudo dpkg -i myxx-cmake_2.1.92_all.deb`,
|
||||||
или [архив](../../../releases/download/2.0.12/myxx-cmake-local-2.0.12.tar.xz)
|
или [архив](../../../releases/download/2.1.92/myxx-cmake-local-2.1.92.tar.xz)
|
||||||
и распаковать его в каталог `$HOME/.local/share/cmake`.
|
и распаковать его в каталог `$HOME/.local/share/cmake`.
|
||||||
|
|
||||||
## Использование
|
## Использование
|
||||||
|
2
debian/CMakeLists.txt
vendored
2
debian/CMakeLists.txt
vendored
@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
|
||||||
project(myxx-cmake VERSION 2.0.12 LANGUAGES)
|
project(myxx-cmake VERSION 2.1.92 LANGUAGES)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
file(WRITE ${CMAKE_SOURCE_DIR}/MyxxCMake/MyxxCMakeConfigVersion.cmake
|
file(WRITE ${CMAKE_SOURCE_DIR}/MyxxCMake/MyxxCMakeConfigVersion.cmake
|
||||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
myxx-cmake (2.0.12) unstable; urgency=medium
|
myxx-cmake (2.1.92) unstable; urgency=medium
|
||||||
|
|
||||||
* New version.
|
* New version.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user