weixin_39854951
2020-12-08 19:17 阅读 0

[BUG] CMake error with "target_compile_definitions" and environment variables

Describe the bug I believe the minimum_required_version in the available CMakes are 2.8. I face a problem with the cmake while cmake runs in 2.8 versions.

  1. The cmake function "target_compile_definitions" seems to be an unknown command.
  2. "CMAKE_LANGUAGES_COMPILER_ENV_VAR" and "CMAKE_LANGUAGES_COMPILER" modules are not found.

To Reproduce Have a 2.8 version of cmake available in the build system. Checkout the 3.0.0 SDK and trigger the cmake.

Expected behavior CMake would have got executed peacefully and subsequently the build.

SDK version number SDK version used is 3.0.0

Platform (please complete the following information): running in linux.

Additional context Any option other than the cmake version upgrades would help amazon-kinesis-video-streams-producer-sdk-cpp.log .

该提问来源于开源项目:awslabs/amazon-kinesis-video-streams-producer-sdk-cpp

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

4条回答 默认 最新

  • weixin_39989949 weixin_39989949 2020-12-08 19:17

    Thanks for the report!

    What Linux distro + version are you using? Will reproduce this today, thanks!

    点赞 评论 复制链接分享
  • weixin_39854951 weixin_39854951 2020-12-08 19:17

    -Der : Running on a thirdparty system. Here are the details. /mnt/ramdisk/root # cat /proc/version Linux version 3.10.104+ (charlie-virtual-machine) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 PREEMPT Mon May 18 16:01:21 CST 2020

    点赞 评论 复制链接分享
  • weixin_39911998 weixin_39911998 2020-12-08 19:17

    Seems that CMake 2.8.11 contains target_compile_definitions

    https://cmake.org/cmake/help/v2.8.11/cmake.html#command:target_compile_definitions

    and this is the earliest version that started to have the directive.

    We should update the make file to reflect this

    点赞 评论 复制链接分享
  • weixin_39911998 weixin_39911998 2020-12-08 19:17

    This is fixed

    点赞 评论 复制链接分享

相关推荐