Skip to content

Commit

Permalink
Correct a mistake in CMake for FindPython3
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmeng committed Dec 3, 2021
1 parent 3071ced commit f91443f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ if (${CMAKE_PROJECT_NAME} STREQUAL APP)
find_package(OpenACC QUIET)
find_package(OpenCL QUIET)
find_package(OpenMP QUIET)
find_package(find_package(Python3 REQUIRED) QUIET)
find_package(Python3 REQUIRED)
if (NOT Python3_FOUND)
message (FATAL_ERROR "We cannot find Python3 and the Python translator needs Python2! Please use -DPython3_EXECUTABLE to specify the path.")
message (FATAL_ERROR "We cannot find Python3 and the Python translator needs Python3! Please use -DPython3_EXECUTABLE to specify the path.")
else()
FIND_PATH (opsc NAMES "ops.py" PATHS ${SEARCH_PATHS} PATH_SUFFIXES bin/ops_translator/c)
FIND_PATH (opsfortran NAMES "ops_fortran.py" PATHS ${SEARCH_PATHS} PATH_SUFFIXES bin/ops_translator/fortran)
Expand Down

0 comments on commit f91443f

Please sign in to comment.