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
I would like to suggest adding a new CMake variable (e.g. NPM_CMAKEJS) to the set of variables defined by CMake.js when configuring the project. (i.e. something like D.push({"NPM_CMAKEJS": "TRUE"}); in cMake.js)
This would indicate that CMake has been invoked by CMake.js. (as opposed to a call from the command line or by an IDE such as CLion)
Having such a variable allows more flexibility in the CMakeLists.txt. For instance, when working on a complex project, it can be used to switch between sub-projects:
if (NPM_CMAKEJS)
add_subdirectory(node_addon)
else()
add_subdirectory(other_subproject)
endif()
Thanks :)
The text was updated successfully, but these errors were encountered:
Hello,
I would like to suggest adding a new CMake variable (e.g.
NPM_CMAKEJS
) to the set of variables defined by CMake.js when configuring the project. (i.e. something likeD.push({"NPM_CMAKEJS": "TRUE"});
incMake.js
)This would indicate that CMake has been invoked by CMake.js. (as opposed to a call from the command line or by an IDE such as CLion)
Having such a variable allows more flexibility in the
CMakeLists.txt
. For instance, when working on a complex project, it can be used to switch between sub-projects:Thanks :)
The text was updated successfully, but these errors were encountered: