# \#comp:mingw

**URL:** https://discourse.cmake.org/tag/comp-mingw/28.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [How to Enable CMake parallel compile](https://discourse.cmake.org/t/how-to-enable-cmake-parallel-compile/13265)

<div class="topic-metadata">

**Author:** [@ElbertZ](https://discourse.cmake.org/u/ElbertZ)\
**Replies:** 2\
**Last updated:** [December 30, 2024, 6:50am UTC](https://discourse.cmake.org/t/how-to-enable-cmake-parallel-compile/13265 "2024-12-30T06:50:49Z")

</div>

I try to parallel compile a c++ project with Visual Studio 2022. However It cost 4 minute in Visual Studio2022 or using command instead of 1minute in VSCode, VisualStudio2022 and using command will cost more time and le…

---

## [Make Error 127 \[Makefile:136: all\] Error 2](https://discourse.cmake.org/t/make-error-127-makefile-all-error-2/9938)

<div class="topic-metadata">

**Author:** [@Corruptsmurf](https://discourse.cmake.org/u/Corruptsmurf)\
**Replies:** 9\
**Last updated:** [January 27, 2024, 7:35pm UTC](https://discourse.cmake.org/t/make-error-127-makefile-all-error-2/9938 "2024-01-27T19:35:58Z")

</div>

Quick disclaimer: I am a novice. Feel free to explain things. I am attempting to run these scripts to compile a custom build of ffmpeg: I originally had questions about this project that I posted on Stack Overflow (m…

---

## [A way to include a lot of directories](https://discourse.cmake.org/t/a-way-to-include-a-lot-of-directories/9479)

<div class="topic-metadata">

**Author:** [@cortes707](https://discourse.cmake.org/u/cortes707)\
**Replies:** 9\
**Last updated:** [November 24, 2023, 7:57am UTC](https://discourse.cmake.org/t/a-way-to-include-a-lot-of-directories/9479 "2023-11-24T07:57:54Z")

</div>

Hello, everyone. First, I am using CMake 3.27 from MingW 13.2.0, Windows 10 X64, VSCode 1.80.2, CMake Tools Extension v1.15.27 I have a project with like less than 1000 source & header files. About 150-160 directories.…

---

## [CMakeDetermineRCCompiler can not set correct extension when cross compiling](https://discourse.cmake.org/t/cmakedeterminerccompiler-can-not-set-correct-extension-when-cross-compiling/9365)

<div class="topic-metadata">

**Author:** [@UrMyLacia](https://discourse.cmake.org/u/UrMyLacia)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 1:40pm UTC](https://discourse.cmake.org/t/cmakedeterminerccompiler-can-not-set-correct-extension-when-cross-compiling/9365 "2023-11-17T13:40:25Z")

</div>

Environment OS: Debian 12.2.0 cmake: 3.25.1 compiler tools: x86\_64-w64-mingw32 issue I’m cross-compiling a desktop program for windows on a linux platform I want to add app icon using add\_executable like add\_executa…

---

## [linker cannot find openmp library on msys system](https://discourse.cmake.org/t/linker-cannot-find-openmp-library-on-msys-system/8167)

<div class="topic-metadata">

**Author:** [@bradbell](https://discourse.cmake.org/u/bradbell)\
**Replies:** 1\
**Last updated:** [June 2, 2023, 8:08pm UTC](https://discourse.cmake.org/t/linker-cannot-find-openmp-library-on-msys-system/8167 "2023-06-02T20:08:22Z")

</div>

I am using FIND\_PACKAGE(OpenMP) on mysy2 and then linking the necessary libraries using TARGET\_LINK\_LIBRARIES( target\_name ... ${OpenMP\_CXX\_LIBRARIES} ) This works find on most systems, but on msys2 I get the following…

---

## [cmake + mingw32: invalid option '-?'](https://discourse.cmake.org/t/cmake-mingw32-invalid-option/5344)

<div class="topic-metadata">

**Author:** [@hydroconstructor](https://discourse.cmake.org/u/hydroconstructor)\
**Replies:** 8\
**Last updated:** [March 31, 2022, 2:39pm UTC](https://discourse.cmake.org/t/cmake-mingw32-invalid-option/5344 "2022-03-31T14:39:41Z")

</div>

Can’t compile anything by cmake, including Step 1 tutorial example. There is my CMakeLists.txt: cmake\_minimum\_required(VERSION 3.10) set( CMAKE\_CXX\_COMPILER "c:/Program Files/mingw-w64/x86\_64-8.1.0-win32-seh-rt\_v6-rev0…

---

## [Cannot find wxWidgets for MinGW using find\_package](https://discourse.cmake.org/t/cannot-find-wxwidgets-for-mingw-using-find-package/3860)

<div class="topic-metadata">

**Author:** [@jjELT](https://discourse.cmake.org/u/jjELT)\
**Replies:** 0\
**Last updated:** [August 1, 2021, 5:29pm UTC](https://discourse.cmake.org/t/cannot-find-wxwidgets-for-mingw-using-find-package/3860 "2021-08-01T17:29:42Z")

</div>

Building wxWidgets with MinGW I downloaded wxWidgets 3.1.5, extracted it to \<EXTERNAL\_PROJECTS\>/Source/wxwidgets/v3.1.5 and used CMake to build it via these commands: C:/Program Files/CMake/bin/cmake.exe -S\<EXTERNAL\_PRO…

---

## [Weird edge case with gcov](https://discourse.cmake.org/t/weird-edge-case-with-gcov/3703)

<div class="topic-metadata">

**Author:** [@arclight](https://discourse.cmake.org/u/arclight)\
**Replies:** 2\
**Last updated:** [July 7, 2021, 5:11pm UTC](https://discourse.cmake.org/t/weird-edge-case-with-gcov/3703 "2021-07-07T17:11:28Z")

</div>

I’m trying to detect coverage testing flags in CMake before passing them to gfortran using check\_fortran\_compiler\_flag(). This works fine on Linux (GCC 9.4.0). With MinGW64 on Windows, some flags aren’t detected (GCC 10.…

---

## [Unknown CMake command "generate\_export\_header"](https://discourse.cmake.org/t/unknown-cmake-command-generate-export-header/3536)

<div class="topic-metadata">

**Author:** [@Alkexan](https://discourse.cmake.org/u/Alkexan)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 7:02am UTC](https://discourse.cmake.org/t/unknown-cmake-command-generate-export-header/3536 "2021-06-09T07:02:05Z")

</div>

Hi, I’m trying to make .dll, and I wrote this CMakeFile.txt: # Shared Library CMakeList.txt cmake\_minimum\_required (VERSION 3.12) # Set language and the project name project (mylib CXX) # add all source files from dir…

---

## [Qt5 CMake can't find C++ STD library if a definition is added in CMakeLists.txt](https://discourse.cmake.org/t/qt5-cmake-cant-find-c-std-library-if-a-definition-is-added-in-cmakelists-txt/3061)

<div class="topic-metadata">

**Author:** [@Ivan\_Petrov](https://discourse.cmake.org/u/Ivan_Petrov)\
**Replies:** 2\
**Last updated:** [April 2, 2021, 12:14pm UTC](https://discourse.cmake.org/t/qt5-cmake-cant-find-c-std-library-if-a-definition-is-added-in-cmakelists-txt/3061 "2021-04-02T12:14:44Z")

</div>

Here is the problem I am struggling with. I am using CMake to build my Qt5 GUI project. I am using a custom module QML-material project from GitHub. The problem is that as it is said in the project documentation - in or…

---

## [GET\_RUNTIME\_DEPENDENCIES does not seem to work with MinGW](https://discourse.cmake.org/t/get-runtime-dependencies-does-not-seem-to-work-with-mingw/2239)

<div class="topic-metadata">

**Author:** [@foolnotion](https://discourse.cmake.org/u/foolnotion)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 10:12pm UTC](https://discourse.cmake.org/t/get-runtime-dependencies-does-not-seem-to-work-with-mingw/2239 "2020-11-25T22:12:19Z")

</div>

Hi, Using arch linux with MinGW and cmake 3.19. The following code works on Windows / MSVC / cmake version 3.18.20081302-MSVC\_2, but on MinGW does not find any dependencies at all. mylib is a shared library. On Windows …
