Skip to content

Commit 40e8eb5

Browse files
authored
Merge pull request eric-wieser#7 from awesomebytes/patch-1
Only run tests if tests are enabled
2 parents 37ce642 + 8e054d4 commit 40e8eb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,7 @@ catkin_package(
177177
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
178178
# endif()
179179

180-
## Add folders to be run by python nosetests
181-
catkin_add_nosetests(test)
180+
if(CATKIN_ENABLE_TESTING)
181+
## Add folders to be run by python nosetests
182+
catkin_add_nosetests(test)
183+
endif()

0 commit comments

Comments
 (0)