File tree Expand file tree Collapse file tree 5 files changed +3
-8
lines changed Expand file tree Collapse file tree 5 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
- set (scripts c++2py c++2rst c++2cxx cp_rs )
1
+ set (scripts c++2py c++2rst c++2cxx )
2
2
3
3
foreach (script ${scripts} )
4
4
configure_file (${script} .in ${script} @ONLY )
Original file line number Diff line number Diff line change 1
- #!@PYTHON_EXECUTABLE@
2
-
3
1
# Acts as cp -rs on Linux
4
2
# Workaround for the absence of this option on OS X
5
3
# Usage cp_rs SRC DEST
Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ set_property(TARGET c++2rst PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/b
41
41
add_executable (c++2cxx IMPORTED GLOBAL )
42
42
set_property (TARGET c++2cxx PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/bin/c++2cxx" )
43
43
44
- add_executable (cp_rs IMPORTED GLOBAL )
45
- set_property (TARGET cp_rs PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/bin/cp_rs" )
46
-
47
44
# include the exported targets of this project
48
45
include (@CMAKE_INSTALL_PREFIX@/lib/cmake/Cpp2Py/Cpp2PyTargets.cmake )
49
46
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${DEST} FILES_MATCHING
7
7
8
8
# Link all files with relevant extensions into binary tree
9
9
# This allows us to get a working cpp2py Setup already after the build stage
10
- execute_process (COMMAND ${PROJECT_BINARY_DIR} /bin/cp_rs ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} "py cxx rst" )
10
+ execute_process (COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR} /bin/cp_rs.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} "py cxx rst" )
11
11
12
12
###################################################################################
13
13
#
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${DEST} FILES_MATCHING
4
4
5
5
# Link all files with relevant extensions into binary tree
6
6
# This allows us to get a working cpp2py Setup already after the build stage
7
- execute_process (COMMAND ${PROJECT_BINARY_DIR} /bin/cp_rs ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} "py" )
7
+ execute_process (COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR} /bin/cp_rs.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} "py" )
You can’t perform that action at this time.
0 commit comments