cmake --install fails on Windows
Issue description
I cannot install libzmq via cmake.exe inside of Git Bash. I build with
cmake.exe .. -DWITH_DOCS=OFF -DENABLE_DRAFTS=ON -DWITH_PERF_TOOL=OFF -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release
and then cmake --build ., which works. However:
$ cmake --install .
-- Install configuration: "Release"
-- Installing: C:/Program Files (x86)/ZeroMQ/lib/pkgconfig/libzmq.pc
CMake Error at cmake_install.cmake:55 (file):
file INSTALL cannot find
"C:/Users/themightyoarfish/Downloads/libzmq-master/libzmq-4.3.3/build/bin/Release/libzmq-v142-mt-4_3_3.dll":
No error.
And indeed the mentioned file does not exist:
$ ls bin
Debug/
so somehow – despite selecting Release build type – only a debug build is created? Not sure if this is the case.
Environment
- libzmq version (commit hash if unreleased): 4.3.3
- OS: Windows 10
Minimal test code / Steps to reproduce the issue
See above.
What's the actual result? (include assertion message & call stack if applicable)
See above.
What's the expected result?
cmake --install . on windows successfully installs to somewhere.
Are those the right steps? From this reference, the steps to build libzmq are:
Build libzmq via cmake. This does an out of source build and installs the build files
- download and unzip the lib, cd to directory
- mkdir build
- cd build
- cmake ..
- sudo make -j4 install
Not sure I understand the difference between cmake install and make install, I'd be curious to hear what you've tested. I'm getting odd results. (release stuff = total fail, debug stuff looks okay but fails in Visual Studio running code...) I've been testing VCPKG builds as well. Note: zeromq_x64-windows-static stuff works great,
As in don't have make on the windows system, i use cmake --install as the build system agnostic way of installation. on windows i believe ninja is used, at least by Visual Studio.
This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.