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

Problems with link libraries for ecl_time tests #10

Closed
bit-pirate opened this issue Mar 11, 2013 · 2 comments
Closed

Problems with link libraries for ecl_time tests #10

bit-pirate opened this issue Mar 11, 2013 · 2 comments

Comments

@bit-pirate
Copy link
Contributor

E.g.

-- skipping gtest 'test_sleep' in project 'ecl_time'
CMake Error at ecl_core/ecl_time/src/test/CMakeLists.txt:9 (target_link_libraries):
  Cannot specify link libraries for target "test_sleep" which is not built by
  this project.


-- Configuring incomplete, errors occurred!```
@bit-pirate
Copy link
Contributor Author

We just found out that this problem only occurs, if gtest is not installed. In this case the target is not build (by catkin) and hence linking it fails.

One solution is adding:

catkin_add_gtest(test_cpuwatch cpuwatch_rt.cpp)
if(TARGET test_cpuwatch)
  target_link_libraries(test_cpuwatch ${PROJECT_NAME})
endif()

@stonier
Copy link
Owner

stonier commented Mar 11, 2013

Solution works: there are lots of commits everywhere to bring these up to speed and probably a few more to go, but we seem to be mostly covered now.

@stonier stonier closed this as completed Mar 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants