CMake warnings under OS X: MACOSX_RPATH is not specified for the following targets

前端 未结 3 976
余生分开走
余生分开走 2020-12-14 08:36

I try to build a CMake-based software under OS X (Yosemite) which can be built successfully under Fedora 21. It uses a bunch of libraries. Both, big open ones like Boost and

3条回答
  •  余生分开走
    2020-12-14 08:49

    As mentioned in a comment above, if you don't need to target older versions of cmake, you can simply set:

    cmake_minimum_required (VERSION 3.0)
    

    This removes the ambiguity of default values between major versions and simply enables runtime path behaviors by default.

提交回复
热议问题