Skip to content

Commit

Permalink
check test target built
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmang committed Oct 31, 2023
1 parent 84301aa commit a7909ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vowpalwabbit/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ vw_add_test_executable(
SOURCES ${vw_core_test_sources}
)

if(VW_FEAT_CB_GRAPH_FEEDBACK)
if(TARGET vw_core_test AND VW_FEAT_CB_GRAPH_FEEDBACK)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
target_compile_options(vw_core_test PRIVATE -Wno-unused-but-set-variable)
endif()
Expand Down

0 comments on commit a7909ee

Please sign in to comment.