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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to