Skip to content

Commit 3516072

Browse files
committedFeb 24, 2019
cpp: Require CXX_STANDARD 11 - fixes #578
Signed-off-by: Benn Snyder <[email protected]>
1 parent 52908d4 commit 3516072

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Notice: If you have the newer Kinect v2 (XBox One), use [OpenKinect/libfreenect2
1818
To build libfreenect, you'll need
1919

2020
- [libusb](http://libusb.info) >= 1.0.18
21-
- [CMake](http://cmake.org) >= 2.8.12
21+
- [CMake](http://cmake.org) >= 3.1.0
2222
- [python](http://python.org) >= 2.7 or >= 3.3 (only if BUILD_PYTHON=ON or BUILD_PYTHON2=ON or BUILD_PYTHON3=ON or BUILD_REDIST_PACKAGE=OFF)
2323

2424
For the examples, you'll need
@@ -44,12 +44,12 @@ For example, to build the Python wrapper (defaults to system Python):
4444

4545
cmake .. -DBUILD_PYTHON=ON
4646
make
47-
47+
4848
Or the Python 3 wrapper:
49-
49+
5050
cmake .. -DBUILD_PYTHON3=ON
5151
make
52-
52+
5353

5454
You can specify a build with debug symbols:
5555

‎wrappers/cpp/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
cmake_minimum_required(VERSION 3.1.0)
2+
set_property(DIRECTORY PROPERTY CXX_STANDARD 11)
3+
14
install(FILES libfreenect.hpp
25
DESTINATION ${PROJECT_INCLUDE_INSTALL_DIR})
36

@@ -19,4 +22,4 @@ if (BUILD_EXAMPLES)
1922
install(TARGETS freenect-cppview freenect-cpp_pcview
2023
DESTINATION bin)
2124
endif()
22-
ENDIF()
25+
endif()

0 commit comments

Comments
 (0)