Skip to content

Commit

Permalink
Merge pull request #105 from ffontaine/master
Browse files Browse the repository at this point in the history
CMakeLists.txt: respect BUILD_TESTING
  • Loading branch information
joto committed May 1, 2021
2 parents d3a3579 + 03daae4 commit 85db940
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Expand Up @@ -23,6 +23,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

#-----------------------------------------------------------------------------

option(BUILD_TESTING "Build tests" ON)
option(WERROR "Add -Werror flag to build (turns warnings into errors)" ON)

if(MSVC)
Expand Down Expand Up @@ -134,13 +135,13 @@ install(DIRECTORY include/protozero DESTINATION include)

#-----------------------------------------------------------------------------

enable_testing()

add_subdirectory(doc)

add_subdirectory(tools)

add_subdirectory(test)

if(BUILD_TESTING)
enable_testing()
add_subdirectory(test)
endif()

#-----------------------------------------------------------------------------

0 comments on commit 85db940

Please sign in to comment.