mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
test: fix some cmake params (#3308)
This commit is contained in:
@@ -141,7 +141,8 @@ CU_RUN_HOOK("AFTER_SRC_LOAD")
|
|||||||
|
|
||||||
if( UNIT_TESTS )
|
if( UNIT_TESTS )
|
||||||
# we use this to get code coverage
|
# we use this to get code coverage
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
if(CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Clang)
|
||||||
|
message("Unit tests code coverage: enabling -fprofile-arcs -ftest-coverage")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user