Skip to content

Commit 3b0f416

Browse files
kairibuqdot
authored andcommitted
fix: cmake now skips cpp example according to the BUILD_EXAMPLE option
Signed-off-by: Kai Ritterbusch <[email protected]>
1 parent e32f598 commit 3b0f416

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wrappers/cpp/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
INSTALL(FILES libfreenect.hpp
22
DESTINATION include)
33

4+
IF(BUILD_EXAMPLES)
5+
46
set(CMAKE_C_FLAGS "-Wall")
57

68
if (WIN32)
@@ -36,3 +38,5 @@ endif()
3638

3739
install (TARGETS cppview
3840
DESTINATION bin)
41+
42+
ENDIF()

0 commit comments

Comments
 (0)