Open
Description
We're currently using an old version of rez (2.49.0) and would like to update to 2.68.4. Everything wees to be fine with the new version on Linux, but we can't build with Cmake anymore on Windows.
The first error is:
CMake Error at CMakeLists.txt:7 (include):
include could not find load file:
RezBuild
and other error follows indicating the Rez environment variables for Cmake are not set.
It appears the reasons for this error are:
- our cmake package has visualstudio in its
build_requires
- our visualstudio contains the following code:
if building:
cmd = 'call "{executable}" x64'
cmd = cmd.format(executable=os.path.join(expandvars("{root}"), "bin", "msvcEnv.bat"))
command(cmd)
- rez now sets the build environment in
post_actions_callback
instead ofactions_callback
and it's too late
Would it be reasonable to use again actions_callback
at this line when building?
Or do yo know any other way to run cmake via rez on Windows?
I tried to use vswhere
as mentionned here but it doesn't return any installPath.