Created
March 25, 2019 00:48
-
-
Save lisanhu/e20f6f91ad36fe3e7f4526b4afaef578 to your computer and use it in GitHub Desktop.
CMake testing C/CXX compiler vendor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |
# using GCC | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | |
# using Clang | |
#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") | |
# using Intel C++ | |
#elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") | |
# using Visual Studio C++ | |
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI") | |
# using PGI | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment