Commit 704f96a7a7592a73ac4077ee3d45896b536f7edf
Committed by
Moritz Wirger
1 parent
e642d65c
Fix: Ensure GMock is built with C++14 Support
Previously building the tests would fail as the build-system would assume a non C++11/14 environment.
Showing
1 changed file
with
2 additions
and
0 deletions
hueplusplus/test/CMakeLists.txt
| ... | ... | @@ -54,6 +54,8 @@ target_include_directories(test_HuePlusPlus PUBLIC ${GTest_INCLUDE_DIRS}) |
| 54 | 54 | target_include_directories(test_HuePlusPlus PUBLIC ${HuePlusPlus_INCLUDE_DIR}) |
| 55 | 55 | set_property(TARGET test_HuePlusPlus PROPERTY CXX_STANDARD 14) |
| 56 | 56 | set_property(TARGET test_HuePlusPlus PROPERTY CXX_EXTENSIONS OFF) |
| 57 | +set_property(TARGET gmock PROPERTY CXX_STANDARD 14) | |
| 58 | +set_property(TARGET gtest PROPERTY CXX_STANDARD 14) | |
| 57 | 59 | # add custom target to make it simple to run the tests |
| 58 | 60 | add_custom_target("unittest" |
| 59 | 61 | # Run the executable | ... | ... |