“no known features for CXX compiler” when compiling with MSVC++ 2013

前端 未结 1 751
囚心锁ツ
囚心锁ツ 2020-12-21 04:39

I have a relatively simple CMakeLists.txt that contains the following line(s):

target_compile_features(myapp PRIVATE
    cxx_generalized_initial         


        
相关标签:
1条回答
  • 2020-12-21 05:40

    CMake 3.1.0 only supports 'compile features' for GCC 4.7+ (on UNIX but not APPLE) and Clang (but not AppleClang) 3.4+.

    CMake 3.2.0 will extend the support to GCC 4.4+ (on UNIX, including APPLE), AppleClang 4.0+ (Xcode 4.4+), SolarisStudio 12.4 and MSVC 2010+.

    Patches and maintenance for other compilers can be sent to the cmake mailing list.

    Make sure CMP0025 is NEW if you are on APPLE.

    https://cmake.org/cmake/help/v3.6/command/cmake_policy.html

    0 讨论(0)
提交回复
热议问题