-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node-gyp cannot generate cmake #33
Comments
This project uses Why do you need a
|
@khrushjing, if you add this to your diff --git a/binding.gyp b/binding.gyp
index 76499503..44734bb0 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -8,6 +8,8 @@
"enable_logging%": "false",
"enable_asan%": "false",
"enable_coverage%": "false",
+ "module_name": "gdal",
+ "module_path": "./lib/binding",
"sources_node_gdal": [
"src/utils/typed_array.cpp",
"src/utils/string_list.cpp", But I am not willing to merge this, because it will break other things - normally these variables should come from |
If I use the following command: ./node_modules/.bin/node-pre-gyp configure -- -f cmake node-pre-gyp will automatically fill in the variables, but the real problem is that the cmake cannot be generated. |
node-gyp is now able to generate the cmakelist file, whose output is under the build folder |
It is well known that node-gyp cannot be parsed by ide. So the usual practice is to generate cmake, using the following command:
This command will eventually generate a CMakeList.txt, which can eventually be parsed by ide.
However, this approach seems to fail in this project, and neither an error is reported nor any results are output.
The text was updated successfully, but these errors were encountered: