Skip to content

Commit 14ea999

Browse files
sbc100kripken
authored andcommitted
Fix out-of-tree install of wasm.js (#1616)
1 parent 4c16bd2 commit 14ea999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ INSTALL(FILES src/binaryen-c.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
170170

171171
# if binaryen.js and wasm.js were built (using "./build-js.sh", currently
172172
# optional), install them
173-
IF(EXISTS "bin/binaryen.js")
173+
IF(EXISTS "${CMAKE_SOURCE_DIR}/bin/binaryen.js")
174174
INSTALL(FILES bin/binaryen.js DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
175175
ENDIF()
176-
IF(EXISTS "bin/wasm.js")
176+
IF(EXISTS "${CMAKE_SOURCE_DIR}/bin/wasm.js")
177177
INSTALL(FILES bin/wasm.js DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
178178
ENDIF()
179179

0 commit comments

Comments
 (0)