Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake warnings occurs from dependencies #1368

Open
UnaNancyOwen opened this issue Oct 2, 2020 · 0 comments · May be fixed by #1369
Open

CMake warnings occurs from dependencies #1368

UnaNancyOwen opened this issue Oct 2, 2020 · 0 comments · May be fixed by #1369
Assignees
Labels
Bug Something isn't working Triage Approved The Issue has been approved by an Azure Kinect team member.

Comments

@UnaNancyOwen
Copy link
Contributor

Describe the bug

CMake warnings CMP0063 and CMP0048 occurs from dependencies.
Some developers unfamiliar with CMake will mistake these for errors, because it shown in red-color character.
I suggest to suppress these warnings.

To Reproduce

  1. clone Azure Kinect Sensor SDK
  2. cmake configure, and show some warnings

Expected behavior

Logs

CMake Warning (dev) at extern/azure_c_shared/src/CMakeLists.txt:10 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/azure_c_shared/src/deps/azure-macro-utils-c/CMakeLists.txt:10 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/azure_c_shared/src/deps/umock-c/CMakeLists.txt:15 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/libjpeg-turbo/src/CMakeLists.txt:7 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/libsoundio/src/CMakeLists.txt:2 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/libyuv/src/CMakeLists.txt:45 (if):
  Policy CMP0064 is not set: Support new TEST if() operator.  Run "cmake
  --help-policy CMP0064" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  TEST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

Screenshots

2020-10-02_09h52_44

Desktop (please complete the following information):

  • OS with Version: Windows 1909
  • SDK Version: 1.4.1 or develop/HEAD
  • CMake Version: 3.17.5

Additional context

@UnaNancyOwen UnaNancyOwen added Bug Something isn't working Triage Needed The Issue still needs to be reviewed by Azure Kinect team members. labels Oct 2, 2020
@UnaNancyOwen UnaNancyOwen linked a pull request Oct 2, 2020 that will close this issue
7 tasks
@qm13 qm13 self-assigned this Oct 2, 2020
@qm13 qm13 added Triage Approved The Issue has been approved by an Azure Kinect team member. and removed Triage Needed The Issue still needs to be reviewed by Azure Kinect team members. labels Oct 2, 2020
@qm13 qm13 assigned jaygullapalli and unassigned qm13 Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage Approved The Issue has been approved by an Azure Kinect team member.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants