View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015727CMakeCMakepublic2015-09-05 15:492016-02-01 09:10
ReporterLectem 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSWindowsOS Version10
Product VersionCMake 3.3 
Target VersionCMake 3.4Fixed in VersionCMake 3.4 
Summary0015727: Support C compiler features for GNU on windows
DescriptionWhen 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 ReproduceUsing mingw-w64 (x86_64) on windows
Additional InformationSame problem as https://public.kitware.com/Bug/view.php?id=15443 [^] but for C.
TagsNo tags attached.
Attached Files

 Relationships
related to 0015443closedBrad King Unable to use target_compile_features with MinGW-w64 

  Notes
(0039376)
Brad King (manager)
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 (manager)
2016-02-01 09:10

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-09-05 15:49 Lectem New Issue
2015-09-09 09:28 Brad King Relationship added duplicate of 0015443
2015-09-09 09:29 Brad King Relationship replaced related to 0015443
2015-09-09 09:34 Brad King Note Added: 0039376
2015-09-09 09:34 Brad King Assigned To => Brad King
2015-09-09 09:34 Brad King Status new => resolved
2015-09-09 09:34 Brad King Resolution open => fixed
2015-09-09 09:34 Brad King Fixed in Version => CMake 3.4
2015-09-09 09:34 Brad King Target Version => CMake 3.4
2016-02-01 09:10 Robert Maynard Note Added: 0040391
2016-02-01 09:10 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team