We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c16bd2 commit 14ea999Copy full SHA for 14ea999
CMakeLists.txt
@@ -170,10 +170,10 @@ INSTALL(FILES src/binaryen-c.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
170
171
# if binaryen.js and wasm.js were built (using "./build-js.sh", currently
172
# optional), install them
173
-IF(EXISTS "bin/binaryen.js")
+IF(EXISTS "${CMAKE_SOURCE_DIR}/bin/binaryen.js")
174
INSTALL(FILES bin/binaryen.js DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
175
ENDIF()
176
-IF(EXISTS "bin/wasm.js")
+IF(EXISTS "${CMAKE_SOURCE_DIR}/bin/wasm.js")
177
INSTALL(FILES bin/wasm.js DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
178
179
0 commit comments