Commit e4351ed 1 parent 44cea1a commit e4351ed Copy full SHA for e4351ed
File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,14 @@ include(build_tools/cmake/cg_filegroup.cmake)
44
44
include (build_tools/cmake/grpc.cmake)
45
45
include (build_tools/cmake/protobuf.cmake)
46
46
47
- set (COMPILER_GYM_PYTHONPATH "$ENV{PYTHONPATH} "
47
+ # Set up the build Python path.
48
+ set (COMPILER_GYM_BUILD_PYTHONPATH "$ENV{PYTHONPATH} "
48
49
CACHE STRING "PYTHONPATH environment variable during build step."
49
50
)
50
- if (COMPILER_GYM_PYTHONPATH )
51
- string (PREPEND COMPILER_GYM_PYTHONPATH ":" )
51
+ if (COMPILER_GYM_BUILD_PYTHONPATH )
52
+ string (PREPEND COMPILER_GYM_BUILD_PYTHONPATH ":" )
52
53
endif ()
53
- string (PREPEND COMPILER_GYM_PYTHONPATH "${CMAKE_BINARY_DIR} " )
54
+ string (PREPEND COMPILER_GYM_BUILD_PYTHONPATH "${CMAKE_BINARY_DIR} " )
54
55
include (build_tools/cmake/set_command_pythonpath.cmake)
55
56
56
57
set (DEFAULT_CMAKE_BUILD_TYPE "Release" )
Original file line number Diff line number Diff line change 2
2
#
3
3
# This source code is licensed under the MIT license found in the
4
4
# LICENSE file in the root directory of this source tree.
5
-
6
5
include (CMakeParseArguments)
7
6
8
7
function (set_command_pythonpath)
9
8
cmake_parse_arguments (_ARG "" "COMMAND;RESULT" "" ${ARGN} )
10
9
11
- if (COMPILER_GYM_PYTHONPATH )
10
+ if (COMPILER_GYM_BUILD_PYTHONPATH )
12
11
set (${_ARG_RESULT}
13
- "\" ${CMAKE_COMMAND} \" -E env \" PYTHONPATH=${COMPILER_GYM_PYTHONPATH } \" ${_ARG_COMMAND} "
12
+ "\" ${CMAKE_COMMAND} \" -E env \" PYTHONPATH=${COMPILER_GYM_BUILD_PYTHONPATH } \" ${_ARG_COMMAND} "
14
13
PARENT_SCOPE
15
14
)
16
15
else ()
You can’t perform that action at this time.
0 commit comments