Fix missing version info for CMake DLL builds

This commit is contained in:
evpobr 2020-11-10 10:52:30 +05:00
parent 08d802a3d1
commit bf24f18b2c

View File

@ -233,7 +233,6 @@ add_library (sndfile
src/chanmap.c src/chanmap.c
src/id3.c src/id3.c
$<$<BOOL:${WIN32}>:src/windows.c> $<$<BOOL:${WIN32}>:src/windows.c>
$<$<AND:$<BOOL:${WIN32}>,$<BOOL:${BUILD_SHARED_LIBS}>>:src/version-metadata.rc>
src/sndfile.c src/sndfile.c
src/aiff.c src/aiff.c
src/au.c src/au.c
@ -362,6 +361,7 @@ if (BUILD_SHARED_LIBS)
set (PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) set (PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
configure_file (src/version-metadata.rc.in src/version-metadata.rc @ONLY) configure_file (src/version-metadata.rc.in src/version-metadata.rc @ONLY)
target_sources (sndfile PRIVATE ${PROJECT_BINARY_DIR}/src/version-metadata.rc)
endif () endif ()
set_target_properties (sndfile PROPERTIES set_target_properties (sndfile PROPERTIES