googlefonts / sfntly

A Library for Using, Editing, and Creating SFNT-based Fonts
451 stars 162 forks source link

CMakeList "GCC_OR_CLANG" doesn't work #112

Open ZypherChan opened 4 years ago

ZypherChan commented 4 years ago

I complie on Windows System. And Cmake the CMakeLists in \sfntly\cpp\CMakeLists.txt. I use the VS2019 to open the sln and found the commandline has "wur=attribute__((warn_unused_result)) -Wall -Werror -fno-exceptions". At last, the reason is "set(GCC_OR_CLANG ((CMAKE_CXX_COMPILER_ID MATCHES "Clang") OR CMAKE_COMPILER_IS_GNUCXX))" doesn't work.