You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building jerryscript via CMake, using FetchContent, there is a visible error relating to executing version.py.
[cmake] python: can't open file 'C:/Users/dougl/git/playground/cmake/use3rdPartyLib/UseJerryScript/tools/version.py': [Errno 2] No such file or directory
Seems like it's the jerryscript/CMakeLists.txt entry of
# Determining version
execute_process(COMMAND ${PYTHON} ${CMAKE_SOURCE_DIR}/tools/version.py
OUTPUT_VARIABLE JERRY_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
Does CMAKE_SOURCE_DIR, refer to my project when I use FetchContent? That's what the error implies. Seems like CMAKE_CURRENT_LIST_DIR might work as expected?
[cmake] python: can't open file 'C:/Users/dougl/git/playground/cmake/use3rdPartyLib/UseJerryScript/tools/version.py': [Errno 2] No such file or directory
Test case
n/a
Execution platform
n/a
Execution steps
n/a
Output
see above
Backtrace
Expected behavior
not error
The text was updated successfully, but these errors were encountered:
@dmalnati Thank you for the issue report, but: can you please edit your report to
remove the unnecessary parts that are left over from the template ("First of all, when reporting a bug, give the issue a descriptive title....")
use triple backtick guards around code snippets to improve readability (it may only affect me, but at the moment, it is not completely clear what the build steps are)
@dmalnati Thank you for the issue report, but: can you please edit your report to
remove the unnecessary parts that are left over from the template ("First of all, when reporting a bug, give the issue a descriptive title....")
use triple backtick guards around code snippets to improve readability (it may only affect me, but at the moment, it is not completely clear what the build steps are)
Oh yeah sorry, hadn't realized what a disaster the entry looked like. Fixed now.
Long story short, when I bring in the jerryscript lib, into my project (called UseJerryScript), it looks like when I use FetchContent_MakeAvailable that the CMakeLists.txt within the root of jerryscript winds up looking for the ./tools/version.py within the UseJerryScript root folder as opposed to the correct root folder of jerryscript.
When building jerryscript via CMake, using FetchContent, there is a visible error relating to executing version.py.
Seems like it's the jerryscript/CMakeLists.txt entry of
Does
CMAKE_SOURCE_DIR
, refer to my project when I use FetchContent? That's what the error implies. Seems likeCMAKE_CURRENT_LIST_DIR
might work as expected?JerryScript revision
v3.0.0
Build platform
Windows-10-10.0.22631-SP0
Build steps
Build log
Test case
n/a
Execution platform
n/a
Execution steps
n/a
Output
see above
Backtrace
Expected behavior
not error
The text was updated successfully, but these errors were encountered: