Skip to content

Commit

Permalink
Properly exclude tests when BUILD_TESTING is OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed May 5, 2022
1 parent 6ac10c3 commit efe1b98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ add_subdirectory(lib)
add_subdirectory(src)

# add unit tests
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()

# finally, generate export configs
include(cmake/export.cmake)

0 comments on commit efe1b98

Please sign in to comment.