Skip to content

Commit

Permalink
CMake: Fix Clang detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-w committed Jul 7, 2018
1 parent f439366 commit b49fb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ ENDIF(WANT_DEBUG_FPE)
PKG_CHECK_MODULES(SAMPLERATE REQUIRED samplerate>=0.1.8)

# set compiler flags
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|AppleClang")
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow")
OPTION(USE_WERROR "Add -werror to the build flags. Stops the build on warnings" OFF)
IF(${USE_WERROR})
Expand Down

0 comments on commit b49fb83

Please sign in to comment.