[cmake-developers] [CMake 0015727]: Support C compiler features for GNU on windows
Mantis Bug Tracker
mantis at public.kitware.com
Sat Sep 5 15:49:29 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15727
======================================================================
Reported By: Lectem
Assigned To:
======================================================================
Project: CMake
Issue ID: 15727
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-09-05 15:49 EDT
Last Modified: 2015-09-05 15:49 EDT
======================================================================
Summary: Support C compiler features for GNU on windows
Description:
When using target_compile_features(hello_world PRIVATE c_static_assert)
I am getting this error :
CMake Error at CMakeLists.txt:16 (target_compile_features):
target_compile_features no known features for C compiler
"GNU"
version 5.1.0.
Removing the UNIX check in Modules/Compiler/GNU-CXX.cmake fixed it
Steps to Reproduce:
Using mingw-w64 (x86_64) on windows
Additional Information:
Same problem as https://public.kitware.com/Bug/view.php?id=15443 but for C.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-09-05 15:49 Lectem New Issue
======================================================================
More information about the cmake-developers
mailing list