Commit 7d145c6c authored by patrikhuber's avatar patrikhuber

Added CMake snippet to map the RelWithDebInfo build to OpenCV's release libraries

In the default setting, it links to OpenCV's debug libs, and that doesn't work with the STL of the RelWithDebInfo build.
parent 1ed8d805
...@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 2.8.10) ...@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 2.8.10)
find_package(OpenCV 2.4.3 REQUIRED core imgproc highgui) find_package(OpenCV 2.4.3 REQUIRED core imgproc highgui)
message(STATUS "OpenCV include dir found at ${OpenCV_INCLUDE_DIRS}") message(STATUS "OpenCV include dir found at ${OpenCV_INCLUDE_DIRS}")
message(STATUS "OpenCV lib dir found at ${OpenCV_LIB_DIR}") message(STATUS "OpenCV lib dir found at ${OpenCV_LIB_DIR}")
# This allows us to compile in RelWithDebInfo. It'll use the Release-version of OpenCV:
set_target_properties(${OpenCV_LIBS} PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE)
find_package(Boost 1.50.0 COMPONENTS system filesystem program_options REQUIRED) find_package(Boost 1.50.0 COMPONENTS system filesystem program_options REQUIRED)
if(Boost_FOUND) if(Boost_FOUND)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment