Currently we use
fs.execute_string(rockspec.variables.CMAKE.." . " ..args
fs.execute_string(rockspec.variables.MAKE.." -fMakefile")
fs.execute_string(rockspec.variables.MAKE.." -fMakefile install")
Which use make to build the module.
But cmake have more portable way to build project:
cmake -Bbuild -H.
cmake --build build --target install --config Release
This will let cmake to choose best generator and build it in a portable way.
This solution have follow advantages:
- One command to build all platform (with cmake installed).
- Better for windows, we don't need to run under MSVC command prompt
Currently we use
Which use make to build the module.
But cmake have more portable way to build project:
This will let cmake to choose best generator and build it in a portable way.
This solution have follow advantages: