Skip to content

Commit

Permalink
Fix how VERSION is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Aug 12, 2024
1 parent f4b071f commit d6f0782
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmake/wasi-sdk-sysroot.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6f0782

Please sign in to comment.