Skip to content

Commit 691a618

Browse files
committed
Update CMakeLists.txt
1 parent 1225840 commit 691a618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ elseif(APPLE)
197197
elseif(LINUX)
198198
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGUID_STDLIB -std=c++17")
199199

200-
if(CLANG)
200+
if (CMAKE_CXX_COMPILER MATCHES "clang")
201201
message(STATUS "Detected Clang compiler: ${CMAKE_CXX_COMPILER}")
202202
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
203203
endif()

0 commit comments

Comments
 (0)