diff --git a/hipamd/src/CMakeLists.txt b/hipamd/src/CMakeLists.txt index b2bf28bbaa..814bf33d0f 100644 --- a/hipamd/src/CMakeLists.txt +++ b/hipamd/src/CMakeLists.txt @@ -20,6 +20,10 @@ cmake_minimum_required(VERSION 3.5.1) +if (POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + include(GNUInstallDirs) set(VERSION_MAJOR_AMDHIP ${HIP_VERSION_MAJOR}) diff --git a/hipamd/src/hiprtc/CMakeLists.txt b/hipamd/src/hiprtc/CMakeLists.txt index 6565e25ecd..3c81a918ff 100644 --- a/hipamd/src/hiprtc/CMakeLists.txt +++ b/hipamd/src/hiprtc/CMakeLists.txt @@ -27,6 +27,10 @@ cmake_minimum_required(VERSION 3.16.1) option(BUILD_SHARED_LIBS "Build the shared library" ON) +if (POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") if(BUILD_SHARED_LIBS)