Skip to content

Commit 40e86a7

Browse files
committed
fix: echo the cmake commands to the stdout
1 parent 867e65d commit 40e86a7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

script/build.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ function main() {
7474
writeFileSync(clang_format_file, "")
7575
}
7676

77-
exec(
78-
`cmake -S "${src_dir}" -B ./build ${build_options} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX="${libzmq_install_prefix}" -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_STATIC=ON -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DWITH_DOCS=OFF`,
79-
)
77+
const cmake_configure = `cmake -S "${src_dir}" -B ./build ${build_options} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX="${libzmq_install_prefix}" -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_STATIC=ON -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DWITH_DOCS=OFF`
78+
console.log(cmake_configure)
79+
exec(cmake_configure)
8080

81-
exec(`cmake --build ./build --config ${CMAKE_BUILD_TYPE} --target install`)
81+
const cmake_build = `cmake --build ./build --config ${CMAKE_BUILD_TYPE} --target install`
82+
console.log(cmake_build)
83+
exec(cmake_build)
8284

8385
if (process.platform === "win32") {
8486
// rename libzmq-v143-mt-s-4_3_4.lib to libzmq.lib

0 commit comments

Comments
 (0)