mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08:00
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.
This commit is contained in:
parent
12ceb01485
commit
30eb5ce128
@ -1,4 +1,4 @@
|
|||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
#Get compiler version.
|
#Get compiler version.
|
||||||
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion
|
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion
|
||||||
OUTPUT_VARIABLE GNUCXX_VERSION
|
OUTPUT_VARIABLE GNUCXX_VERSION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user