mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-01 03:34:26 +02:00
Account for WIN32
This commit is contained in:
committed by
Howard Hinnant
parent
a4ce4bc2d3
commit
362cd8f27e
@@ -89,9 +89,14 @@ target_include_directories(date_interface INTERFACE
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
if(WIN32 AND NOT CYGWIN)
|
||||
set(DEF_INSTALL_CMAKE_DIR CMake)
|
||||
else()
|
||||
set(DEF_INSTALL_CMAKE_DIR lib/cmake/date)
|
||||
endif()
|
||||
|
||||
install( TARGETS date_interface EXPORT DateConfig )
|
||||
install( EXPORT DateConfig DESTINATION lib/cmake/date )
|
||||
install( EXPORT DateConfig DESTINATION ${DEF_INSTALL_CMAKE_DIR} )
|
||||
install( TARGETS tz DESTINATION lib )
|
||||
install( DIRECTORY ${HEADER_FOLDER}/ DESTINATION include/ )
|
||||
|
||||
|
Reference in New Issue
Block a user