build: Disable lua plugin tests for clang
@@ -34,11 +34,20 @@ add_plugin (lua
INSTALL_TEST_DATA)
if (ADDTESTING_PHASE)
- if (NOT APPLE) # TODO: ENABLE_BROKEN_TESTS
+ # Disable broken tests
+ if (APPLE)
+ # TODO: ENABLE_BROKEN_TESTS
+ message (WARNING "Disabling tests in ${CMAKE_CURRENT_LIST_DIR} due to APPLE")
+ return ()
+ endif (APPLE)
+ if (CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
+ CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ message (WARNING "Disabling tests in ${CMAKE_CURRENT_LIST_DIR} due to clang")
+ return ()
+ endif ()
check_binding_was_added ("swig_lua" BINDING_WAS_ADDED) # bindings are required for tests
if (BUILD_TESTING AND BINDING_WAS_ADDED)
-
# test environment clears env so setting LUA_CPATH is no option
# we workaround this by changing the current directory to our bindings
# output directory + per default lua loads modules from current directory
@@ -50,5 +59,4 @@ if (ADDTESTING_PHASE)
else ()
message (WARNING "swig_lua bindings are required for testing, test deactivated")
endif ()
- endif (NOT APPLE)
endif ()
