From bb2296d48b537cd89d087450b782277024d4a302 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 19 Jul 2016 06:52:38 +0530 Subject: [PATCH] Set cmake policy CMP0037 to old behavior for newer cmake versions Change-Id: Ib2a7da53a238a489e73d6c006c50f12f07f866a1 [ROCm/clr commit: 89cbfadf8699640c6895077a72e2c2b5673d6e9b] --- projects/clr/hipamd/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/clr/hipamd/CMakeLists.txt b/projects/clr/hipamd/CMakeLists.txt index d99907d695..65a920f4ad 100644 --- a/projects/clr/hipamd/CMakeLists.txt +++ b/projects/clr/hipamd/CMakeLists.txt @@ -227,5 +227,12 @@ add_custom_target(pkg_hip_samples COMMAND ${CMAKE_COMMAND} . WORKING_DIRECTORY ${BUILD_DIR}) # Package: all +if(POLICY CMP0037) + cmake_policy(PUSH) + cmake_policy(SET CMP0037 OLD) +endif() add_custom_target(package DEPENDS pkg_hip_base pkg_hip_hcc pkg_hip_nvcc pkg_hip_doc pkg_hip_samples) +if(POLICY CMP0037) + cmake_policy(POP) +endif()