From 0fe3f42df7ddd67e0a42d29c091f9528d3c31923 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 11 Oct 2023 19:29:37 +0300 Subject: [PATCH] Fix cmake_subdir_test and cmake_install_test --- test/cmake_install_test/main.cpp | 2 +- test/cmake_subdir_test/CMakeLists.txt | 2 +- test/cmake_subdir_test/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cmake_install_test/main.cpp b/test/cmake_install_test/main.cpp index ff084d8..25de09b 100644 --- a/test/cmake_install_test/main.cpp +++ b/test/cmake_install_test/main.cpp @@ -7,5 +7,5 @@ int main() { BOOST_AUTO(x, 5); - return x == 5; + return x == 5? 0: 1; } diff --git a/test/cmake_subdir_test/CMakeLists.txt b/test/cmake_subdir_test/CMakeLists.txt index 239c54e..bb00bed 100644 --- a/test/cmake_subdir_test/CMakeLists.txt +++ b/test/cmake_subdir_test/CMakeLists.txt @@ -30,7 +30,7 @@ endforeach() # --target check add_executable(main main.cpp) -target_link_libraries(quick Boost::typeof) +target_link_libraries(main Boost::typeof) enable_testing() add_test(main main) diff --git a/test/cmake_subdir_test/main.cpp b/test/cmake_subdir_test/main.cpp index ff084d8..25de09b 100644 --- a/test/cmake_subdir_test/main.cpp +++ b/test/cmake_subdir_test/main.cpp @@ -7,5 +7,5 @@ int main() { BOOST_AUTO(x, 5); - return x == 5; + return x == 5? 0: 1; }