Last active
July 17, 2017 05:58
-
-
Save soulslicer/51a34de5f1f2adb82c7cc8efb0e4a628 to your computer and use it in GitHub Desktop.
iai_kinect_opencv3_fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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