cmake/autotools: Fix generated expat-noconfig.cmake for macOS and MinGW
This commit is contained in:
parent
09ec4ff9c1
commit
43142f0bab
@ -66,6 +66,9 @@ cmakedir = $(libdir)/cmake/expat-@PACKAGE_VERSION@
|
|||||||
|
|
||||||
|
|
||||||
_EXTRA_DIST_CMAKE = \
|
_EXTRA_DIST_CMAKE = \
|
||||||
|
cmake/autotools/expat-noconfig__linux.cmake.in \
|
||||||
|
cmake/autotools/expat-noconfig__macos.cmake.in \
|
||||||
|
cmake/autotools/expat-noconfig__windows.cmake.in \
|
||||||
cmake/autotools/expat-package-init.cmake \
|
cmake/autotools/expat-package-init.cmake \
|
||||||
cmake/mingw-toolchain.cmake \
|
cmake/mingw-toolchain.cmake \
|
||||||
\
|
\
|
||||||
|
19
expat/cmake/autotools/expat-noconfig__macos.cmake.in
Normal file
19
expat/cmake/autotools/expat-noconfig__macos.cmake.in
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#----------------------------------------------------------------
|
||||||
|
# Generated CMake target import file.
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
|
||||||
|
# Commands may need to know the format version.
|
||||||
|
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||||
|
|
||||||
|
# Import target "expat::expat" for configuration ""
|
||||||
|
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
|
||||||
|
set_target_properties(expat::expat PROPERTIES
|
||||||
|
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@.dylib"
|
||||||
|
IMPORTED_SONAME_NOCONFIG "@rpath/libexpat.@SO_MAJOR@.dylib"
|
||||||
|
)
|
||||||
|
|
||||||
|
list(APPEND _IMPORT_CHECK_TARGETS expat::expat )
|
||||||
|
list(APPEND _IMPORT_CHECK_FILES_FOR_expat::expat "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@.dylib" )
|
||||||
|
|
||||||
|
# Commands beyond this point should not need to know the version.
|
||||||
|
set(CMAKE_IMPORT_FILE_VERSION)
|
19
expat/cmake/autotools/expat-noconfig__windows.cmake.in
Normal file
19
expat/cmake/autotools/expat-noconfig__windows.cmake.in
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#----------------------------------------------------------------
|
||||||
|
# Generated CMake target import file.
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
|
||||||
|
# Commands may need to know the format version.
|
||||||
|
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||||
|
|
||||||
|
# Import target "expat::expat" for configuration ""
|
||||||
|
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
|
||||||
|
set_target_properties(expat::expat PROPERTIES
|
||||||
|
IMPORTED_IMPLIB_NOCONFIG "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.dll.a"
|
||||||
|
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/bin/libexpat-@SO_MAJOR@.dll"
|
||||||
|
)
|
||||||
|
|
||||||
|
list(APPEND _IMPORT_CHECK_TARGETS expat::expat )
|
||||||
|
list(APPEND _IMPORT_CHECK_FILES_FOR_expat::expat "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.dll.a" "${_IMPORT_PREFIX}/bin/libexpat-@SO_MAJOR@.dll" )
|
||||||
|
|
||||||
|
# Commands beyond this point should not need to know the version.
|
||||||
|
set(CMAKE_IMPORT_FILE_VERSION)
|
@ -397,11 +397,15 @@ AC_SUBST([AM_LDFLAGS])
|
|||||||
dnl updating _EXPAT_OUTPUT_NAME variable to effect the package name in expat.pc file (issue #361)
|
dnl updating _EXPAT_OUTPUT_NAME variable to effect the package name in expat.pc file (issue #361)
|
||||||
AC_SUBST(_EXPAT_OUTPUT_NAME, ["$PACKAGE_NAME"])
|
AC_SUBST(_EXPAT_OUTPUT_NAME, ["$PACKAGE_NAME"])
|
||||||
|
|
||||||
|
AS_CASE("${host_os}",
|
||||||
|
[darwin*], [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in],
|
||||||
|
[mingw*], [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in],
|
||||||
|
[CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in])
|
||||||
AC_CONFIG_FILES([Makefile]
|
AC_CONFIG_FILES([Makefile]
|
||||||
[expat.pc]
|
[expat.pc]
|
||||||
[cmake/expat-config.cmake]
|
[cmake/expat-config.cmake]
|
||||||
[cmake/autotools/expat-config-version.cmake]
|
[cmake/autotools/expat-config-version.cmake]
|
||||||
[cmake/autotools/expat-noconfig.cmake]
|
[cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}]
|
||||||
[doc/Makefile]
|
[doc/Makefile]
|
||||||
[examples/Makefile]
|
[examples/Makefile]
|
||||||
[lib/Makefile]
|
[lib/Makefile]
|
||||||
|
Loading…
Reference in New Issue
Block a user