Git Product home page Git Product logo

Comments (5)

claudiofantacci avatar claudiofantacci commented on July 16, 2024

Project version shall be set in the project() command as reported here.

In the CMakeLists.txt the include(RTFVersion) should export a variable to be used in `project()', e.g.:

inlcude(RTFVersion)
project(RTF LANGUAGE CXX VERSION ${RTFVersionNumber})
...

This should be compliant with CMP0048
cc: @apaikan @traversaro @drdanz

from robot-testing-framework.

traversaro avatar traversaro commented on July 16, 2024

I am quite confused. If we use the new signature of project we break compatibility with CMake < 3.0 (not a big problem, considering robotology/community#173 and given that RTF is mostly a developer tool). However I wonder why we don't get this warning in the other libraries.

For the RPATH warning, the logic to set it properly can be found in https://github.com/robotology/ycm/blob/master/modules/AddInstallRPATHSupport.cmake .

from robot-testing-framework.

claudiofantacci avatar claudiofantacci commented on July 16, 2024

As far as VERSION issue is concerned, @apaikan is also experiencing this warning on Windows. What I would guess about it, is that with the latest version of CMake (I have 3.7.1), developers are pushing to move users toward 3.0>. I have no problem with supporting older version (say 2.8>), but we may want to consider enforcing the policies and moving toward CMake 3.0.

As far as RPATH issue is concerned, I think we can use AddInstallRPATHSupport.cmake directly copying it into the config folder (and modifying CMakeLists accordingly). Am I right?

from robot-testing-framework.

drdanz avatar drdanz commented on July 16, 2024

I think this is the problem:

CMakeLists.txt:9

project(RTF)

# ...

# include version number
include(RTFVersion)

RTFVersion.cmake

set(RTF_VERSION_MAJOR "1")
set(RTF_VERSION_MINOR "0")
set(RTF_VERSION_PATCH "1")
set(RTF_VERSION_TWEAK "0")

# Generate RTF_VERSION
if(RTF_VERSION_TWEAK)
    set(RTF_VERSION "${RTF_VERSION_MAJOR}.${RTF_VERSION_MINOR}.${RTF_VERSION_PATCH}.${RTF_VERSION_TWEAK}")
else()
    set(RTF_VERSION "${RTF_VERSION_MAJOR}.${RTF_VERSION_MINOR}.${RTF_VERSION_PATCH}")
endif()

robot-testing/src/rtf/CMakeLists.txt:8

project(RTF)

The second project(RTF) is overriding the values set by RTFVersion. CMake checks if the variables set are empty and warns the uses. Just removing the second call (that is actually useless and confusing since it will overwrite several variables) should fix this warning.
@claudiofantacci Can you please try?

from robot-testing-framework.

claudiofantacci avatar claudiofantacci commented on July 16, 2024

I'm on it 👍

from robot-testing-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.