AcademySoftwareFoundation / AcademySoftwareFoundation/rez
CMake won't install files on windows
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 369
- Avg merge
- 12d 3h
- Merged PRs (30d)
- 5
Description
Hi guys!
So, i have 2 identical (i hope) environment setup on Windows 10 and CentOS 7.
rez_version: 2.1.1.pxo.01
**CentOS**:
1. Invoke rez-build
2. cd build/
3. make -n install:
`[alex@centos build]$ make -ns install
/usr/bin/cmake -H/home/alex/sandbox/rezolution/geo -B/home/alex/sandbox/rezolution/geo/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/alex/sandbox/rezolution/geo/build/CMakeFiles /home/alex/sandbox/rezolution/geo/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
/usr/bin/cmake -E cmake_progress_start /home/alex/sandbox/rezolution/geo/build/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
/usr/bin/cmake -E cmake_echo_color --switch= --cyan "Install the project..."
/usr/bin/cmake -P cmake_install.cmake`
**Note the last call to cmake_install.cmake**
**Windows**:
1. Invoke rez-build
2. cd build/
3. nmake -N install:
C:\CMake\bin\cmake.exe -HC:\Users\alex\sandbox\rezolution\testgeo -BC:\Users\alex\sandbox\rezolution\testgeo\build --check-build-system CMakeFiles\Makefile.cmake 0
C:\VC\VC\BIN\nmake.exe -f CMakeFiles\Makefile2 /nologo -NS install
AND
nmake -f CMakeFiles\Makefile2 -NS install
C:\CMake\bin\cmake.exe -HC:\Users\alex\sandbox\rezolution\testgeo -BC:\Users\alex\sandbox\rezolution\testgeo\build --check-build-system CMakeFiles\Makefile.cmake 0
C:\CMake\bin\cmake.exe -E cmake_progress_start C:\Users\alex\sandbox\rezolution\testgeo\build\CMakeFiles 0
C:\VC\VC\BIN\nmake.exe -f CMakeFiles\Makefile2 /nologo -NS CMakeFiles\install.dir\all
C:\CMake\bin\cmake.exe -E cmake_progress_start C:\Users\alex\sandbox\rezolution\testgeo\build\CMakeFiles 0
**As you can see no call to cmake_install.cmake was made**
Struggling with this two days. Really need help!
Contributor guide
Research direction
Reproduce the Windows case with rez-build, then inspect the generated files under build/ and compare nmake install with the CentOS make install output. Start with CMakeFiles/Makefile2 and cmake_install.cmake; done means the Windows install target invokes cmake_install.cmake and installs the expected files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100