Skip to content

Commit

Permalink
fix CMake deprication warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej Dundovic committed Nov 25, 2023
1 parent 165cd2a commit 1629951
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.1)
cmake_minimum_required (VERSION 3.5)
project(hermes C CXX)
set(HERMES_RELEASE_VERSION 0.9)

Expand Down Expand Up @@ -345,8 +345,8 @@ target_link_libraries(hermes ${HERMES_EXTRA_LIBRARIES})
# Python
# ----------------------------------------------------------------------------
option(ENABLE_PYTHON "Create python library via Pybind11" OFF)
find_package(PythonInterp)
find_package(PythonLibs)
include(FindPython3)
find_package(Python3 COMPONENTS Interpreter Development)

if(ENABLE_PYTHON AND PYTHONLIBS_FOUND)
include_directories(${PYTHON_INCLUDE_DIRS})
Expand Down
2 changes: 1 addition & 1 deletion lib/gtest/googletest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ else()
cmake_policy(SET CMP0048 NEW)
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
endif()
cmake_minimum_required(VERSION 2.8...3.13)
cmake_minimum_required(VERSION 3.5)

if (POLICY CMP0063) # Visibility
cmake_policy(SET CMP0063 NEW)
Expand Down
3 changes: 2 additions & 1 deletion lib/gtest/googletest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ function(cxx_executable name dir libs)
endfunction()

# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE.
find_package(PythonInterp)
include(FindPython3)
find_package (Python3 COMPONENTS Interpreter Development)

# cxx_test_with_flags(name cxx_flags libs srcs...)
#
Expand Down

0 comments on commit 1629951

Please sign in to comment.