Package: ignition-common / 1.1.1-1

0003_use_c++11_in_gtest.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Need for explicit c++11 flag
Author: Jose Luis Rivero <jrivero@osrfoundation.org>
Last-Update: 2017-05-08
Forwarded: No

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b40c9d6..7f6c715 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -10,6 +10,7 @@ configure_file (test_config.h.in ${PROJECT_BINARY_DIR}/test_config.h)
 add_library(gtest STATIC /usr/src/gtest/src/gtest-all.cc)
 add_library(gtest_main STATIC /usr/src/gtest/src/gtest_main.cc)
 target_link_libraries(gtest_main gtest)
+target_compile_options(gtest PUBLIC "-std=c++11")
 set(GTEST_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest.a")
 set(GTEST_MAIN_LIBRARY "${PROJECT_BINARY_DIR}/test/libgtest_main.a")