Skip to content

Commit 30eb5ce

Browse files
committed
Check compiler using CMAKE_CXX_COMPILER_ID
Since the introduction of CMAKE_COMPILER_IS_GNUCXX CMake has suggested using CMAKE_CXX_COMPILER_ID for more general checks.
1 parent 12ceb01 commit 30eb5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(CMAKE_COMPILER_IS_GNUCXX)
1+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
22
#Get compiler version.
33
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion
44
OUTPUT_VARIABLE GNUCXX_VERSION

0 commit comments

Comments
 (0)