Fix cmake install for 3.14 or earlier (3.7 min) (#522)

* Fix cmake install for 3.14 or earlier (3.7 min)

Fixes: #504, #505

* Add find_dependency to config file

FIXES: #514
This commit is contained in:
Michael Ellery authored and Howard Hinnant committed 2019-12-29 14:51:04 -05:00
1 parent 48433b9892
commit fc4cf092f9
2 files changed
+27 -7

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
include( CMakeFindDependencyMacro )
include( "${CMAKE_CURRENT_LIST_DIR}/dateTargets.cmake" )
if( NOT MSVC AND TARGET date::tz )
find_dependency( Threads REQUIRED)
get_target_property( _tzill date::tz INTERFACE_LINK_LIBRARIES )
if( _tzill AND "${_tzill}" MATCHES "libcurl" )
find_dependency( CURL )
endif( )
endif( )