mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fix for clang detection in cmake
This commit is contained in:
parent
f887efedf1
commit
4cb8a83dab
@ -34,7 +34,7 @@
|
||||
INCLUDE(CheckCXXSourceCompiles)
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
||||
if (CMAKE_CXX_COMPILER MATCHES "clang")
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "^[cC]lang$")
|
||||
set(CXX11_FLAG_CANDIDATES "--std=c++11")
|
||||
else()
|
||||
set(CXX11_FLAG_CANDIDATES
|
||||
|
Loading…
Reference in New Issue
Block a user