Skip to content

Commit d734ed9

Browse files
committed
Bazel/CMake: fix multiple cmake generate targets
1 parent 14f2d39 commit d734ed9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

misc/bazel/cmake/setup.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ string(REPLACE "-" "_" BAZEL_EXEC_ROOT ${PROJECT_NAME})
1616
set(BAZEL_EXEC_ROOT ${BAZEL_OUTPUT_BASE}/execroot/${BAZEL_EXEC_ROOT})
1717

1818
bazel(query "kind(generate_cmake, //...)" OUTPUT_VARIABLE BAZEL_GENERATE_CMAKE_TARGETS)
19+
string(REPLACE "\n" ";" BAZEL_GENERATE_CMAKE_TARGETS "${BAZEL_GENERATE_CMAKE_TARGETS}")
1920
bazel(build ${BAZEL_GENERATE_CMAKE_TARGETS})
2021

2122
string(REPLACE "//" "" BAZEL_GENERATE_CMAKE_TARGETS "${BAZEL_GENERATE_CMAKE_TARGETS}")

0 commit comments

Comments
 (0)