[MSI_WINETEST] Fix build with CMake 3.9.0 and higher (attempt #2)

This commit is contained in:
Victor Perevertkin 2019-12-13 04:44:31 +03:00
parent 7c474426eb
commit d495a4fceb
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -32,9 +32,11 @@ list(APPEND SOURCE
suminfo.c
precomp.h)
# CMake 3.9 and higher requires to specify this dependency manually
# see https://gitlab.kitware.com/cmake/cmake/issues/19933
set_property(SOURCE msi_winetest.rc PROPERTY OBJECT_DEPENDS custom.dll)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.9.0")
# CMake 3.9 and higher requires to specify this dependency manually
# see https://gitlab.kitware.com/cmake/cmake/issues/19933
set_property(SOURCE msi_winetest.rc PROPERTY OBJECT_DEPENDS custom.dll)
endif()
add_executable(msi_winetest ${SOURCE} testlist.c msi_winetest.rc)
target_link_libraries(msi_winetest uuid)