Skip to content

Commit

Permalink
Fix build error when GTEST_INDIVIDUAL is OFF (#3196)
Browse files Browse the repository at this point in the history
Signed-off-by: jparisu <javierparis@eprosima.com>
(cherry picked from commit c219131)
  • Loading branch information
jparisu authored and mergify[bot] committed Feb 24, 2023
1 parent 1f08239 commit 31ac748
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unittest/dds/topic/DDSSQLFilter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ target_link_libraries(DDSSQLFilterTests fastcdr foonathan_memory
add_gtest(DDSSQLFilterTests SOURCES ${DDSSQLFILTERTEST_SOURCES})

# Tests with specific timeout
set_tests_properties("DDSSQLFilterValueTests.test_filtered_value" PROPERTIES TIMEOUT 500)
if (GTEST_INDIVIDUAL)
# This test does not exist unless it is compiled with GTEST_INDIVIDUAL
set_tests_properties("DDSSQLFilterValueTests.test_filtered_value" PROPERTIES TIMEOUT 500)
endif ()

if(ANDROID)
set_property(TARGET DDSSQLFilterTests PROPERTY CROSSCOMPILING_EMULATOR "adb;shell;cd;${CMAKE_CURRENT_BINARY_DIR};&&")
Expand Down

0 comments on commit 31ac748

Please sign in to comment.