summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libclc/CMakeLists.txt4
-rw-r--r--libclc/generic/lib/gen_convert.py2
2 files changed, 2 insertions, 4 deletions
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 1a77a378e192..b8b5ceff086c 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -184,11 +184,11 @@ if( ENABLE_RUNTIME_SUBNORMAL )
DESTINATION ${CMAKE_INSTALL_DATADIR}/clc )
endif()
-find_program( PYTHON python )
+find_package( Python3 REQUIRED COMPONENTS Interpreter )
file( TO_CMAKE_PATH ${CMAKE_SOURCE_DIR}/generic/lib/gen_convert.py script_loc )
add_custom_command(
OUTPUT convert.cl
- COMMAND ${PYTHON} ${script_loc} > convert.cl
+ COMMAND ${Python3_EXECUTABLE} ${script_loc} > convert.cl
DEPENDS ${script_loc} )
add_custom_target( "generate_convert.cl" DEPENDS convert.cl )
diff --git a/libclc/generic/lib/gen_convert.py b/libclc/generic/lib/gen_convert.py
index 5c87fcbe1aba..7e649faa7dfc 100644
--- a/libclc/generic/lib/gen_convert.py
+++ b/libclc/generic/lib/gen_convert.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
# OpenCL built-in library: type conversion functions
#
# Copyright (c) 2013 Victor Oliveira <victormatheus@gmail.com>