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 via Visual Studio, CMAKE_JS_INC and CMAKE_JS_LIB directories are needed to be known. People call "print-configure" and try to get those in various ways from the output. Please add separate commands to get those in order to avoid workarounds like this.
The text was updated successfully, but these errors were encountered:
There can sometimes be logging included in the output, but setting that to error level should hide anything: cmake-js -l error print-cmakejs-include
Could you provide some example of how to set this up for an ide, so that I can include it in some documentation?
So far I have only verified that they work when run manually, and by mangling my CMakeLists.txt to manually execute these commands instead of using the builtin variables:
Yes, that's also how I do it, don't know how else it could be done as those somehow need to be added to target_include_directories() and target_link_libraries(). Maybe separating this part into a helper cmake module (something I called cmake-js-helper.cmake) would make CMakeLists.txt somewhat clear, but that's just it I think.
Here is the main issue: https://gist.github.com/gdianaty/33c3190a217cd188ea43cd4b06618ba9
When building via Visual Studio, CMAKE_JS_INC and CMAKE_JS_LIB directories are needed to be known. People call "print-configure" and try to get those in various ways from the output. Please add separate commands to get those in order to avoid workarounds like this.
The text was updated successfully, but these errors were encountered: