Last active
January 8, 2024 06:20
-
-
Save atinfinity/d84165bd3796bc73433a to your computer and use it in GitHub Desktop.
コンパイラ情報を取得するCMakeLists.txt
This file contains 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
message(STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}\n") | |
message(STATUS "CMAKE_C_COMPILER_ID: ${CMAKE_C_COMPILER_ID}") | |
message(STATUS "CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}\n") | |
message(STATUS "CMAKE_C_COMPILER_VERSION: ${CMAKE_C_COMPILER_VERSION}") | |
message(STATUS "CMAKE_CXX_COMPILER_VERSION: ${CMAKE_CXX_COMPILER_VERSION}\n") | |
if(MSVC) | |
message(STATUS "MSVC_VERSION: ${MSVC_VERSION}") | |
message(STATUS "CMAKE_VS_PLATFORM_TOOLSET: ${CMAKE_VS_PLATFORM_TOOLSET}") | |
string(SUBSTRING ${CMAKE_VS_PLATFORM_TOOLSET} 1 3 VS_PLATFORM_TOOLSET_VERSION_NUM) | |
message(STATUS "VS_PLATFORM_TOOLSET_VERSION_NUM: ${VS_PLATFORM_TOOLSET_VERSION_NUM}") | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
コンパイラ情報を取得するCMakeLists.txt
CMakeのGeneratorを
Visual Studio 12 2013 Win64
と指定した場合の結果は以下の通り.