https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d495a4fcebf9a32f727f5e266f7696b99cfc4dd3

commit d495a4fcebf9a32f727f5e266f7696b99cfc4dd3
Author:     Victor Perevertkin <[email protected]>
AuthorDate: Fri Dec 13 04:44:31 2019 +0300
Commit:     Victor Perevertkin <[email protected]>
CommitDate: Fri Dec 13 04:44:31 2019 +0300

    [MSI_WINETEST] Fix build with CMake 3.9.0 and higher (attempt #2)
---
 modules/rostests/winetests/msi/CMakeLists.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/rostests/winetests/msi/CMakeLists.txt 
b/modules/rostests/winetests/msi/CMakeLists.txt
index 296252ebbeb..57bb6f310a3 100644
--- a/modules/rostests/winetests/msi/CMakeLists.txt
+++ b/modules/rostests/winetests/msi/CMakeLists.txt
@@ -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)

Reply via email to