Correct lingering references to bare "tz" libname: (#600)

Fixes: #599
This commit is contained in:
Michael Ellery
2020-08-25 13:57:00 -07:00
committed by GitHub
parent 057b441ceb
commit 313189b0a8
2 changed files with 6 additions and 5 deletions

View File

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