MantisBT - CMake
View Issue Details
0015727CMakeCMakepublic2015-09-05 15:492016-02-01 09:10
Lectem 
Brad King 
normalminoralways
closedfixed 
Windows10
CMake 3.3 
CMake 3.4CMake 3.4 
0015727: Support C compiler features for GNU on windows
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
Using mingw-w64 (x86_64) on windows
Same problem as https://public.kitware.com/Bug/view.php?id=15443 [^] but for C.
No tags attached.
related to 0015443closed Brad King Unable to use target_compile_features with MinGW-w64 
Issue History
2015-09-05 15:49LectemNew Issue
2015-09-09 09:28Brad KingRelationship addedduplicate of 0015443
2015-09-09 09:29Brad KingRelationship replacedrelated to 0015443
2015-09-09 09:34Brad KingNote Added: 0039376
2015-09-09 09:34Brad KingAssigned To => Brad King
2015-09-09 09:34Brad KingStatusnew => resolved
2015-09-09 09:34Brad KingResolutionopen => fixed
2015-09-09 09:34Brad KingFixed in Version => CMake 3.4
2015-09-09 09:34Brad KingTarget Version => CMake 3.4
2016-02-01 09:10Robert MaynardNote Added: 0040391
2016-02-01 09:10Robert MaynardStatusresolved => closed

Notes
(0039376)
Brad King   
2015-09-09 09:34   
Thanks, fixed:

 Record compile features for GNU C on Windows
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2fbc41f3 [^]
(0040391)
Robert Maynard   
2016-02-01 09:10   
Closing resolved issues that have not been updated in more than 4 months.