Skip to content

Commit

Permalink
IgnConfigureBuild: only add_subdirectory(test) if BUILD_TESTING is ON
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Aug 20, 2019
1 parent 4d05530 commit 89e5215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/IgnConfigureBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ macro(ign_configure_build)
# Add all the source code directories
add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(test)
if(BUILD_TESTING)
add_subdirectory(test)
endif()


#--------------------------------------
Expand Down

0 comments on commit 89e5215

Please sign in to comment.