File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 30
30
# CMake directives
31
31
######################################################################################
32
32
33
- cmake_minimum_required (VERSION 2.8.12)
33
+ cmake_minimum_required (VERSION 2.8.12...3.12 )
34
34
35
35
######################################################################################
36
36
# Project declaration and options
Original file line number Diff line number Diff line change @@ -6,15 +6,16 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
6
6
include_directories (${LIBUSB_1_INCLUDE_DIRS} )
7
7
8
8
# Audio Firmware
9
- include (FindPythonInterp)
10
9
IF (BUILD_REDIST_PACKAGE)
11
10
# If this build is intended for a redistributable package, we can't include audios.bin, so we should include fwfetcher.py
12
11
# and the package should run "python fwfetcher.py $INSTALL_PREFIX/share" as a postinst hook
13
12
install (FILES "fwfetcher.py" DESTINATION "${CMAKE_INSTALL_PREFIX} /share" )
14
13
ELSE (BUILD_REDIST_PACKAGE)
15
14
# If the install is local only, we can just run fwfetcher.py and install the audios.bin firmware to the system folder
15
+ cmake_minimum_required (VERSION 3.12)
16
+ find_package (Python REQUIRED COMPONENTS Interpreter)
16
17
add_custom_target (firmware ALL
17
- COMMAND ${PYTHON_EXECUTABLE } "${CMAKE_CURRENT_SOURCE_DIR} /fwfetcher.py" "../audios.bin"
18
+ COMMAND ${Python_EXECUTABLE } "${CMAKE_CURRENT_SOURCE_DIR} /fwfetcher.py" "../audios.bin"
18
19
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /fwfetcher.py" )
19
20
install (FILES "${CMAKE_CURRENT_BINARY_DIR} /../audios.bin" DESTINATION "${CMAKE_INSTALL_PREFIX} /share/libfreenect" )
20
21
ENDIF ()
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python2
1
+ #!/usr/bin/env python
2
2
3
3
from __future__ import absolute_import , division , print_function
4
4
You can’t perform that action at this time.
0 commit comments