Skip to content

Configure fails with MinGW on path / GNU compilers chosen before cl.exe #15

@l0calh05t

Description

@l0calh05t

Steps to reproduce:

  • Install MinGW
  • Add the MinGW binary directory to the path
  • Open a VS command prompt
  • Run cmake to configure a project

Stderr:

CMake Error at Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/Platform/Windows-GNU.cmake:141 (enable_language):
  No CMAKE_RC_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "RC" or the CMake cache entry CMAKE_RC_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/Platform/Windows-GNU-C.cmake:2 (__windows_compiler_gnu)
  Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/CMakeCInformation.cmake:56 (include)
  CMakeLists.txt:2 (project)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions