Skip to content

Instantly share code, notes, and snippets.

@soulslicer
Last active July 17, 2017 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulslicer/51a34de5f1f2adb82c7cc8efb0e4a628 to your computer and use it in GitHub Desktop.
Save soulslicer/51a34de5f1f2adb82c7cc8efb0e4a628 to your computer and use it in GitHub Desktop.
iai_kinect_opencv3_fix
diff --git a/kinect2_registration/CMakeLists.txt b/kinect2_registration/CMakeLists.txt
index 14002b6..53f12f6 100644
--- a/kinect2_registration/CMakeLists.txt
+++ b/kinect2_registration/CMakeLists.txt
@@ -1,11 +1,12 @@
cmake_minimum_required(VERSION 2.8.3)
project(kinect2_registration CXX)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBT_USE_DOUBLE_PRECISION -Wall")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBT_USE_DOUBLE_PRECISION -Wall -fno-exceptions")
# Unused warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wuninitialized -Winit-self -Wunused-function -Wunused-label -Wunused-variable -Wunused-but-set-variable -Wunused-but-set-parameter")
# Additional warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Warray-bounds -Wtype-limits -Wreturn-type -Wsequence-point -Wparentheses -Wmissing-braces -Wchar-subscripts -Wswitch -Wwrite-strings -Wenum-compare -Wempty-body")# -Wlogical-op")
+add_definitions( -fexceptions )
# Check for c++11 support
INCLUDE(CheckCXXCompilerFlag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment