I have the following variable defined in my gyp file (expecting that BASE_DIR is always passed as a command line argument):
'variables': {
"BOOST_DIR": "<@(BASE_DIR)/../../opt/boost_1_63_0/stage/lib"
},
and I use it as library path for the msbuild linker:
"VCLinkerTool": {
...
"AdditionalLibraryDirectories": [
"<@(BOOST_DIR)",
...
]
}
This works perfectly fine as long as I only pass in BASE_DIR via the command line. But when I want to pass a different BOOST_DIR, the linker does not find my library anymore:
node-gyp rebuild --BASE_DIR=... --BOOST_DIR=C:\different\boost\dir\lib
Why does it fail when I pass in the boost directoy via the command line?