diff options
Diffstat (limited to 'gnu/packages/patches/date-output-pkg-config-files.patch')
-rw-r--r-- | gnu/packages/patches/date-output-pkg-config-files.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/packages/patches/date-output-pkg-config-files.patch b/gnu/packages/patches/date-output-pkg-config-files.patch index 3fd1d54b36..cfef1d8512 100644 --- a/gnu/packages/patches/date-output-pkg-config-files.patch +++ b/gnu/packages/patches/date-output-pkg-config-files.patch @@ -1,4 +1,4 @@ -From e56b2dce7e89a92e1b9b35caa13b3e938c4cedea Mon Sep 17 00:00:00 2001 +From 13762204d70733b6e7510ccd323b9b1e77c06c0f Mon Sep 17 00:00:00 2001 From: Cole Mickens <cole.mickens@gmail.com> Date: Sun, 26 Jan 2020 01:27:08 -0800 Subject: [PATCH] CMakeLists.txt: output date.pc for pkg-config @@ -10,16 +10,16 @@ Subject: [PATCH] CMakeLists.txt: output date.pc for pkg-config create mode 100644 date.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt -index f30c473..fe778e8 100644 +index 012512a..5fbea80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -128,6 +128,15 @@ if( BUILD_TZ_LIB ) +@@ -158,6 +158,15 @@ if( BUILD_TZ_LIB ) endif( ) endif( ) +if ( BUILD_TZ_LIB ) + # Cflags: -I${includedir} @TZ_COMPILE_DEFINITIONS@ -+ set( TZ_COMPILE_DEFINITIONS "$<IF:$<TARGET_EXISTS:tz>,-D$<JOIN:$<TARGET_PROPERTY:tz,INTERFACE_COMPILE_DEFINITIONS>, -D>,>" ) ++ set( TZ_COMPILE_DEFINITIONS "$<IF:$<TARGET_EXISTS:date-tz>,-D$<JOIN:$<TARGET_PROPERTY:date-tz,INTERFACE_COMPILE_DEFINITIONS>, -D>,>" ) + configure_file(date.pc.in date.pc.cf @ONLY) + file( GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc" + INPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc.cf" ) @@ -29,7 +29,7 @@ index f30c473..fe778e8 100644 #[===================================================================[ installation #]===================================================================] -@@ -171,6 +180,12 @@ install ( +@@ -201,6 +210,12 @@ install ( FILES cmake/dateConfig.cmake "${version_config}" DESTINATION ${CONFIG_LOC}) @@ -56,5 +56,5 @@ index 0000000..b9c4623 +Name: date +Description: A date and time library based on the C++11/14/17 <chrono> header +Version: @PACKAGE_VERSION@ -+Libs: -L${libdir} -ltz ++Libs: -L${libdir} -ldate-tz +Cflags: -I${includedir} @TZ_COMPILE_DEFINITIONS@ |