1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Disable disabling tests on compilers that don't support it (old GCCs).

This commit is contained in:
John Maguire 2010-07-27 15:18:25 +00:00
parent e9f4bba1c1
commit 8a82a12865

View File

@ -83,7 +83,10 @@ macro(add_test_file test_source gui_required)
target_link_libraries(${TEST_NAME} test_main)
endif (GUI_REQUIRED)
set_target_properties(${TEST_NAME} PROPERTIES COMPILE_FLAGS "-Wno-bool-conversions")
check_cxx_compiler_flag("-Wno-bool-conversions" SUPPORTS_NOBOOL)
if (SUPPORTS_NOBOOL)
set_target_properties(${TEST_NAME} PROPERTIES COMPILE_FLAGS "-Wno-bool-conversions")
endif (SUPPORTS_NOBOOL)
add_custom_command(TARGET test POST_BUILD
COMMAND ./${TEST_NAME}${CMAKE_EXECUTABLE_SUFFIX})