From d6f0782fc872fb093832f36ccb170684a2e714c9 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 12 Aug 2024 08:11:41 -0700 Subject: [PATCH] Fix how `VERSION` is installed --- cmake/wasi-sdk-sysroot.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/wasi-sdk-sysroot.cmake b/cmake/wasi-sdk-sysroot.cmake index 932fd510e..d0c4287b9 100644 --- a/cmake/wasi-sdk-sysroot.cmake +++ b/cmake/wasi-sdk-sysroot.cmake @@ -329,12 +329,10 @@ execute_process( COMMAND ${PYTHON} ${version_script} dump WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE version_dump) -set(version_file_tmp ${CMAKE_CURRENT_BINARY_DIR}/VERSION) +set(version_file_tmp ${wasi_sysroot}/VERSION) file(GENERATE OUTPUT ${version_file_tmp} CONTENT ${version_dump}) add_custom_target(version-file DEPENDS ${version_file_tmp}) add_dependencies(build version-file) -install(FILES ${version_file_tmp} - DESTINATION ${wasi_sysroot}) if(WASI_SDK_INCLUDE_TESTS) add_subdirectory(tests)