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

InstallBasicPackageFiles: Support for CMake < 3.9 #1731

Merged
merged 2 commits into from
Jun 6, 2018

Conversation

drdanz
Copy link
Member

@drdanz drdanz commented Jun 5, 2018

This should fix #1727, but I don't have a system to test in this moment.

Can anyone with CMake 3.5 test this, please? @traversaro @PeterBowman @pattacini

@traversaro
Copy link
Member

traversaro commented Jun 5, 2018

I think it is necessary also to fix https://github.com/robotology/yarp/blob/devel/cmake/template/YARPConfig.cmake.in#L142-L144 , otherwise the PR still gives the error :

[ 66%] Performing configure step for 'ICUB'
Not searching for unused variables given on the command line.
loading initial cache file /home/straversaro/src/robotology-superbuild/build/robotology/ICUB/CMakeFiles/YCMTmp/ICUB-cache.cmake
CMake Error at /usr/share/cmake-3.5/Modules/CMakeFindDependencyMacro.cmake:45 (message):
  Invalid arguments to find_dependency
Call Stack (most recent call first):
  /home/straversaro/src/robotology-superbuild/build/install/lib/cmake/YARP/YARPConfig.cmake:166 (find_dependency)
  CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!

@drdanz
Copy link
Member Author

drdanz commented Jun 5, 2018

Right, I forgot about that, sorry...

@drdanz
Copy link
Member Author

drdanz commented Jun 5, 2018

@traversaro last commit should fix it...

@Nicogene
Copy link
Member

Nicogene commented Jun 5, 2018

Configuration and generation of icub-main works now on my machine.
(But there is tons of deprecation message, I don't know if it is related)

$cmake --version
cmake version 3.5.1

I get this error when compiling FirmwareUpdater:

/usr/bin/ld: cannot find -lYARP::YARP_name

@pattacini
Copy link
Member

@Nicogene I must have cleaned up icub-main by getting shot of YARP_INCLUDE_DIRS and YARP_DEFINES.

@Nicogene
Copy link
Member

Nicogene commented Jun 5, 2018

There was still one YARP_INCLUDE_DIRS in embObjLib.cmake
Fixed by robotology/icub-main@49f0f0b

@PeterBowman
Copy link
Member

👍 Works for me, thanks.

@traversaro
Copy link
Member

Working for me.

@traversaro traversaro self-requested a review June 5, 2018 14:42
@Nicogene
Copy link
Member

Nicogene commented Jun 6, 2018

Since this build (https://travis-ci.org/robotology/yarp/builds/387342747?utm_source=github_status&utm_medium=notification), the thrift tests seems broken when yarp is compiled static. Anyone knows why ?
BTW we can merge this PR, the fail is not related.

@lrapetti
Copy link
Member

lrapetti commented Jun 6, 2018

Can we merge this PR?

@drdanz drdanz merged commit 565ea0e into robotology:devel Jun 6, 2018
@drdanz drdanz deleted the InstallBasicPackageFiles_CMake_3_5 branch June 6, 2018 12:32
@PeterBowman
Copy link
Member

Since this build (https://travis-ci.org/robotology/yarp/builds/387342747?utm_source=github_status&utm_medium=notification), the thrift tests seems broken when yarp is compiled static. Anyone knows why ?

@Nicogene possibly related: #1715 (comment).

@PeterBowman
Copy link
Member

Anyone knows why ?

@Nicogene an internal find_dependency(Eigen3) (via YARP_eigenConfig.cmake) call expects a Eigen3_FOUND variable, but it's spelled differently:

set(EIGEN3_FOUND ${EIGEN3_VERSION_OK})

I can replicate this with CMake 3.5 and static YARP at latest devel (e709b46) using own YCM modules. Downstream projects are configured once successfully (no EIGEN3_INCLUDE_DIR variable in cache, yet, thus we are in this block), then fail repeatedly with the same error (missing YARP_eigen because Eigen3 could not be found - here using EIGEN3_FOUND). See also PeterBowman@a5500ad, Travis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants