File: FindPython.cmake

package info (click to toggle)
adios2 2.10.2%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 33,804 kB
  • sloc: cpp: 175,964; ansic: 160,510; f90: 14,630; yacc: 12,668; python: 7,275; perl: 7,126; sh: 2,850; lisp: 1,106; xml: 1,049; makefile: 583; lex: 557
file content (18 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0.  See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#

# This module is already included in new versions of CMake
if(CMAKE_VERSION VERSION_LESS 3.18.0)
  include(${CMAKE_CURRENT_LIST_DIR}/upstream/FindPython.cmake)
else()
  include(${CMAKE_ROOT}/Modules/FindPython.cmake)
endif()

# Backwards compatibility with deprecated FindPythonInterp.cmake
if(Python_Interpreter_FOUND)
  set(PYTHON_EXECUTABLE "${Python_EXECUTABLE}" CACHE INTERNAL
    "Helper for deprecated FindPythonInterp" FORCE
  )
endif()