Can I skip cmake compiler tests or avoid “error: unrecognized option '-rdynamic'”

前端 未结 5 1545
[愿得一人]
[愿得一人] 2021-02-02 08:11

compilation options for cmake (on windows) for ARM target system but when I run configure it\'s starting compiler tests:

CMake Error at D:/Program Files/CMake 2.         


        
5条回答
  •  情深已故
    2021-02-02 08:48

    If you're just compiling a static library and you want to avoid having CMake test that the compiler can generate binaries, you can set the variable CMAKE_TRY_COMPILE_TARGET_TYPE.

    set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
    

提交回复
热议问题