cmake: Fix target name

The executable target run by ctest is `mptest`.

This change removes unnecessary steps when building the `codegen`
target.
This commit is contained in:
Hennadii Stepanov
2025-12-17 20:29:16 +00:00
parent 0f81e00519
commit 94e4f04d7c

View File

@@ -27,7 +27,7 @@ function(add_libmultiprocess subdir)
mark_as_advanced(CapnProto_kj-tls_IMPORTED_LOCATION)
if(BUILD_TESTS)
# Add tests to "all" target so ctest can run them
set_target_properties(mptests PROPERTIES EXCLUDE_FROM_ALL OFF)
set_target_properties(mptest PROPERTIES EXCLUDE_FROM_ALL OFF)
endif()
# Exclude examples from compilation database, because the examples are not
# built by default, and they contain generated c++ code. Without this