1.99.43
This commit is contained in:
parent
0e0424cf5f
commit
c03e7dbd2b
@ -1,4 +1,4 @@
|
|||||||
set(MYX_CMAKE_PACKAGE_VERSION "1.99.42")
|
set(MYX_CMAKE_PACKAGE_VERSION "1.99.43")
|
||||||
if(MYX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
if(MYX_CMAKE_PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
||||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||||
else()
|
else()
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
if(MYX_CMAKE_USE_SYSTEM)
|
if(MYX_CMAKE_USE_SYSTEM)
|
||||||
find_package(MyxCMake 1.99.42 REQUIRED)
|
find_package(MyxCMake 1.99.43 REQUIRED)
|
||||||
else()
|
else()
|
||||||
include(${PROJECT_SOURCE_DIR}/cmake/myx/MyxCMakeConfig.cmake)
|
include(${PROJECT_SOURCE_DIR}/cmake/myx/MyxCMakeConfig.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1 +1 @@
|
|||||||
1.99.42
|
1.99.43
|
||||||
|
21
lib/macro/InstallRelative.cmake
Normal file
21
lib/macro/InstallRelative.cmake
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#[=======================================================================[.rst:
|
||||||
|
install_relative
|
||||||
|
----------------
|
||||||
|
|
||||||
|
#]=======================================================================]
|
||||||
|
|
||||||
|
macro(install_relative STRIP_DIRECTORY)
|
||||||
|
set(options)
|
||||||
|
set(oneValueArgs DESTINATION)
|
||||||
|
set(multiValueArgs FILES)
|
||||||
|
|
||||||
|
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||||
|
|
||||||
|
foreach(FILE ${ARG_FILES})
|
||||||
|
get_filename_component(DIR ${FILE} DIRECTORY)
|
||||||
|
string(REPLACE ${STRIP_DIRECTORY} "" RELATIVE_DIR ${DIR})
|
||||||
|
INSTALL(FILES ${FILE} DESTINATION ${ARG_DESTINATION}/${RELATIVE_DIR} ${ARG_UNPARSED_ARGUMENTS})
|
||||||
|
endforeach()
|
||||||
|
endmacro(install_with_directory)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user