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

indi_mgenautoguider causing CMP0003 cmake warning #85

Closed
TallFurryMan opened this issue Apr 2, 2020 · 1 comment
Closed

indi_mgenautoguider causing CMP0003 cmake warning #85

TallFurryMan opened this issue Apr 2, 2020 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@TallFurryMan
Copy link
Contributor

Describe the bug

When building, the following warning appears while configuring the build tree:

CMake Warning (dev) at indi-mgen/CMakeLists.txt:40 (add_executable):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "indi_mgenautoguider" links to some libraries for which the
  linker must search:

    pthread

  and other libraries with known full path:

    /usr/local/lib/libindidriver.so

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

To Reproduce

  1. Clone 3rd-party source tree
  2. Configure the build with WITH_MGEN=ON (it is enabled by default)
  3. Run the cmake configuration

Expected behavior
No warning should appear, CMakeLists.txt should be clean for indi_mgenautoguider.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: Ubuntu 18.04 i386
  • Version: head

Log Files
n/a

@TallFurryMan TallFurryMan added the bug Something isn't working label Apr 2, 2020
@knro knro added good first issue Good for newcomers help wanted Extra attention is needed labels Sep 28, 2021
@knro
Copy link
Collaborator

knro commented Sep 28, 2021

Any update on this? CMakelists.txt probably needs to be updated?

@knro knro closed this as completed Nov 24, 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 good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants