[CMake] 判断当前环境支不支持C#
作者:互联网
原文链接:https://www.yuque.com/cpptd/cmake/tifr91
cmake系列笔记:https://www.yuque.com/cpptd/cmake
include(CheckLanguage)
check_language( CSharp )
if( CMAKE_CSharp_COMPILER )
enable_language( CSharp )
set(CMAKE_SUPPORTS_CSHARP TRUE)
else()
set(CMAKE_SUPPORTS_CSHARP FALSE)
endif()
标签:www,判断,cmake,CMake,C#,CSHARP,set,CSharp,CMAKE 来源: https://blog.csdn.net/summer_dew/article/details/121935940