https://bugs.kde.org/show_bug.cgi?id=430424

            Bug ID: 430424
           Summary: make install seems broken for mingw on windows
           Product: extra-cmake-modules
           Version: 5.77.0
          Platform: Compiled Sources
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ecm-bugs-n...@kde.org
          Reporter: mark...@gmail.com
  Target Milestone: ---

SUMMARY
Trying to "make install" on windows with MinGW results in:
> Microsoft Windows [Version 10.0.18363.1256]
> (c) 2019 Microsoft Corporation. All rights reserved.

Aka, it does nothing.

Make install executes:
> install: preinstall
>       @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install 
> > the project..."
>       "C:\Program Files\CMake\bin\cmake.exe" -P cmake_install.cmake
> .PHONY : install

The preinstall executes:
> preinstall: all
>       $(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 preinstall
> .PHONY : preinstall

For whatever reason, that preinstall isn't working.
If i directly execute:
> "C:\Program Files\CMake\bin\cmake.exe" -P cmake_install.cmake

And thus manually do what make install should do then it works as expected.


STEPS TO REPRODUCE
1. Have a Windows 10 x64 with mingw installed (i had the one that came with Qt:
mingw81_64)
2. Make sure that your environment variables are set correctly (make --version
should show something)
3. Create a "c:\kderoot" folder. Or adjust below accordingly.
4. open a cmd window
5. git clone https://invent.kde.org/frameworks/extra-cmake-modules.git
(somewhere)
6. In your extra-cmake-modules git clone dir type: mkdir build && cd build &&
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\kderoot;
6. make install

OBSERVED RESULT
> Microsoft Windows [Version 10.0.18363.1256]
> (c) 2019 Microsoft Corporation. All rights reserved.

EXPECTED RESULT
List of files that are installed to the set CMAKE_INSTALL_PREFIX.

SOFTWARE/OS VERSIONS
Windows: 10 x64
Qt Version: 5.15.1 (for mingw)

ADDITIONAL INFORMATION
It would be super helpful if https://api.kde.org/ecm/manual/ecm.7.html would
include installation instructions for windows. On linux this is easy, just
install it using your package manager and you're done. Windows is.... much more
primitive. Which is ironic :)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to