2020-06-24 04:37:41 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index ad74900..42d55af 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-10-06 01:16:05 +02:00
|
|
|
@@ -73,7 +73,7 @@ target_sources( date INTERFACE
|
2020-06-24 04:37:41 +08:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/iso_week.h>
|
2019-11-14 07:14:00 +01:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/julian.h>
|
|
|
|
)
|
2020-06-24 04:37:41 +08:00
|
|
|
-if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.15)
|
|
|
|
+if (0)
|
|
|
|
# public headers will get installed:
|
|
|
|
set_target_properties( date PROPERTIES PUBLIC_HEADER include/date/date.h )
|
|
|
|
endif ()
|
2021-10-06 01:16:05 +02:00
|
|
|
@@ -144,7 +144,6 @@ if( BUILD_TZ_LIB )
|
2019-11-14 07:14:00 +01:00
|
|
|
endif( )
|
2020-06-24 04:37:41 +08:00
|
|
|
set_target_properties( date-tz PROPERTIES
|
2019-11-14 07:14:00 +01:00
|
|
|
POSITION_INDEPENDENT_CODE ON
|
|
|
|
- PUBLIC_HEADER "${TZ_HEADERS}"
|
|
|
|
VERSION "${PROJECT_VERSION}"
|
2021-10-06 01:16:05 +02:00
|
|
|
SOVERSION "${ABI_VERSION}" )
|
2019-11-14 07:14:00 +01:00
|
|
|
if( NOT MSVC )
|
2021-10-06 01:16:05 +02:00
|
|
|
@@ -169,8 +169,8 @@ write_basic_package_version_file( "${version_config}"
|
2019-11-14 07:14:00 +01:00
|
|
|
COMPATIBILITY SameMajorVersion )
|
|
|
|
|
|
|
|
install( TARGETS date
|
|
|
|
- EXPORT dateConfig
|
|
|
|
- PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
|
|
|
+ EXPORT dateConfig )
|
|
|
|
+install( FILES include/date/date.h ${TZ_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
2020-06-24 04:37:41 +08:00
|
|
|
export( TARGETS date NAMESPACE date:: FILE dateTargets.cmake )
|
|
|
|
if (CMAKE_VERSION VERSION_LESS 3.15)
|
|
|
|
install(
|