This is a...
Brief Description
For my nmake to work, I had to make sure to call vcvars32.bat before cmake. However I found no way to do this other than writing a wrapper batch script around cmake.
(If Bug Report) Brief Summary
What I tried:
- Prepending the call to the build command in Preferences -> C/C++ Build -> Builder settings. This did not work as the command is not used for the cmake call.
- Using it as pre-build step in Preferences -> C/C++ Build -> Settings -> Build steps. This did not lead to the batch file being called before cmake.
- Prepend the call to Preferences -> C/C++ Build -> CMake -> OS Host override -> Windows -> CMake Executable. Didn't work because the entry is parsed as one command instead of allowing arbitrary shell script statements.
In the end I wrote a batch script that called vcvars32 and then passed the arguments to cmake, and used that as cmake executable.
What is the expected behavior?
One of the methods above should have allowed to call the script before cmake is executed to populate environment variables - or another method should exist that allows this.
What behavior are you observing?
cmake seems to be the first thing to be called in the build and no way exists to define a "pre-cmake" step.
Provide the steps to reproduce the issue, if applicable:
(If Enhancement Request) Describe it.
Add a "pre-cmake" step.
Useful Information
cmake4eclipse verssion: 1.10.3
Which OS do you use: Windows 7
Cmake version: 3.10.0
This is a...
Brief Description
For my nmake to work, I had to make sure to call vcvars32.bat before cmake. However I found no way to do this other than writing a wrapper batch script around cmake.
(If Bug Report) Brief Summary
What I tried:
In the end I wrote a batch script that called vcvars32 and then passed the arguments to cmake, and used that as cmake executable.
What is the expected behavior?
One of the methods above should have allowed to call the script before cmake is executed to populate environment variables - or another method should exist that allows this.
What behavior are you observing?
cmake seems to be the first thing to be called in the build and no way exists to define a "pre-cmake" step.
Provide the steps to reproduce the issue, if applicable:
(If Enhancement Request) Describe it.
Add a "pre-cmake" step.
Useful Information
cmake4eclipse verssion: 1.10.3
Which OS do you use: Windows 7
Cmake version: 3.10.0