This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem building with cmake under cygwin (need clang)


On 26/07/2016 09:47, Csaba Raduly wrote:
On Tue, Jul 26, 2016 at 8:16 AM, Marco Atzeri  wrote:


 CMake Error at CMakeLists.txt:22 (message):
   Compiler does not support C++1z standard

if you look on CMakeLists.txt you will find is expecting a flag
as "-std=gnu++1z"  that looks a bit strange for a not gnu compiler

Clang implements many of GCC's extensions. -std=gnu++1something means
"C++ 1something with GNU extensions". Clang understands that just
fine.

Csaba


may be, but it seems not so in this case

-- Performing Test COMPILER_SUPPORTS_CXX1Z - Failed
CMake Error at CMakeLists.txt:22 (message):
  Compiler does not support C++1z standard

I am skeptical of all this portion
---------------------------------------------------------
CHECK_CXX_COMPILER_FLAG("-stdlib=libc++" COMPILER_SUPPORTS_LIBCXX)
if(NOT COMPILER_SUPPORTS_LIBCXX)
message(FATAL_ERROR "libc++ not installed or libc++ not supported by clang++")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")

CHECK_CXX_COMPILER_FLAG("-std=gnu++1z" COMPILER_SUPPORTS_CXX1Z)
if(NOT COMPILER_SUPPORTS_CXX1Z)
    message(FATAL_ERROR "Compiler does not support C++1z standard")
endif()
add_compile_options("-std=gnu++1z")
----------------------------------------------------------

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]