From bf24f18b2cb40cfba8c1a1a4f98ab576ee9e9f3b Mon Sep 17 00:00:00 2001 From: evpobr Date: Tue, 10 Nov 2020 10:52:30 +0500 Subject: [PATCH] Fix missing version info for CMake DLL builds --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06e555fa..5f728d72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,7 +233,6 @@ add_library (sndfile src/chanmap.c src/id3.c $<$:src/windows.c> - $<$,$>:src/version-metadata.rc> src/sndfile.c src/aiff.c src/au.c @@ -362,6 +361,7 @@ if (BUILD_SHARED_LIBS) set (PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) configure_file (src/version-metadata.rc.in src/version-metadata.rc @ONLY) + target_sources (sndfile PRIVATE ${PROJECT_BINARY_DIR}/src/version-metadata.rc) endif () set_target_properties (sndfile PROPERTIES