Skip to content

Commit 50d39c7

Browse files
committed
use if (TARGET x) check [skip ci]
1 parent 0c8b2bd commit 50d39c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if(LIBXML2_XMLLINT_EXECUTABLE)
4747
add_dependencies(validatePlatforms validatePlatforms-${platformname})
4848
endforeach()
4949

50-
if (BUILD_CLI)
50+
if(TARGET cppcheck)
5151
add_custom_target(errorlist-xml $<TARGET_FILE:cppcheck> --errorlist > ${CMAKE_BINARY_DIR}/errorlist.xml
5252
DEPENDS cppcheck)
5353

0 commit comments

Comments
 (0)