Skip to content

Commit

Permalink
Merge pull request #16737 from dnakamura/target_warning
Browse files Browse the repository at this point in the history
CMake: Silence warnings about CMP0079
  • Loading branch information
pshipton committed Feb 17, 2023
2 parents e6b3712 + cd90efc commit 026df8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runtime/CMakeLists.txt
@@ -1,5 +1,5 @@
################################################################################
# Copyright (c) 2017, 2022 IBM Corp. and others
# Copyright (c) 2017, 2023 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -29,6 +29,11 @@ include(cmake/version.cmake)

project(j9vm VERSION ${J9VM_VERSION} LANGUAGES CXX C)

# Tell newer versions of CMake that we expect the old behavior of CMP0079
if(POLICY CMP0079)
cmake_policy(SET CMP0079 OLD)
endif()

set(J9VM_OMR_DIR "${CMAKE_CURRENT_SOURCE_DIR}/omr" CACHE PATH "Path to the OMR directory")
set(CMAKE_MODULE_PATH "${j9vm_SOURCE_DIR}/cmake/modules" "${J9VM_OMR_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})

Expand Down

0 comments on commit 026df8b

Please sign in to comment.