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

build fails if CATKIN_ENABLE_TESTING is false #86

Closed
ftsell opened this issue Oct 1, 2019 · 0 comments · Fixed by #87
Closed

build fails if CATKIN_ENABLE_TESTING is false #86

ftsell opened this issue Oct 1, 2019 · 0 comments · Fixed by #87

Comments

@ftsell
Copy link
Contributor

ftsell commented Oct 1, 2019

When building the package and supplying -DCATKIN_ENABLE_TESTING=0 cmake fails with error

() is not available when tests are not enabled.  The CMake code should only                                                                                                                                                                                 
  use it inside a conditional block which checks that testing is enabled:                                                                                                                                                                                     
                                                                                                                                                                                                                                                              
  if(CATKIN_ENABLE_TESTING)                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                              
    (...)                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                              
  endif()                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                              
Call Stack (most recent call first):                                                                                                                                                                                                                          
  CMakeLists.txt:10 (catkin_add_nosetests)

which basically means that the cmake call to catkin_add_nosetests(..) should be inside an if block.

@tfoote tfoote closed this as completed in #87 Nov 8, 2019
agutenkunst added a commit to agutenkunst/rosdoc_lite that referenced this issue Sep 1, 2020
* Removes warning about non existing INCLUDE_PATH. Closes ros-infrastructure#86
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

Successfully merging a pull request may close this issue.

1 participant