Skip to content

Commit

Permalink
add warning messages into CMAKE
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Nov 22, 2024
1 parent fe43462 commit e8f2c19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if (${FORCE_COLORED_OUTPUT})
endif ()
endif ()

if(ROOT_VERSION VERSION_LESS "6.24")
message ( WARNING " Support for ROOT version " ${ROOT_VERSION} " will reach end soon!")
endif()


if(ROOT_VERSION VERSION_GREATER_EQUAL "6.23.01")
message ( "----> Use OSTAP/CMAKE setting for ROOT >6.23")
include(CMakeROOT_6_23.cmake)
Expand Down
1 change: 1 addition & 0 deletions source/CMakeROOT_6_23.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if (PY2VERSION_ROOT)
set( PYTHON_VERSION ${Python2_VERSION} PARENT_SCOPE)
set( PYTHON_EXECUTABLE ${Python2_EXECUTABLE} PARENT_SCOPE)
set_target_properties( root_pyroot PROPERTIES INTERFACE_LINK_LIBRARIES "ROOT::PyROOT2;ROOT::ROOTTPython;Python2::Python")
message ( WARNING " Support for Python " ${Python_version} " will reach end soon!" )
elseif (PY3VERSION_ROOT)
find_package(Python3 ${PY3VERSION_ROOT} COMPONENTS Interpreter Development NumPy)
## find_package(Python3 ${PY3VERSION_ROOT} COMPONENTS Interpreter Development)
Expand Down

0 comments on commit e8f2c19

Please sign in to comment.