Skip to content

Commit

Permalink
Merge pull request #413 from baconpaul/move-ctest
Browse files Browse the repository at this point in the history
Move include(CTest) to inside testing guard
  • Loading branch information
garyscavone committed Sep 18, 2023
2 parents b6edd70 + 6c043b4 commit 36b03e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -280,12 +280,12 @@ target_compile_definitions(rtaudio PRIVATE RTAUDIO_EXPORT)
target_link_libraries(rtaudio ${LINKLIBS})

# Subdirs
include(CTest)

if (NOT DEFINED RTAUDIO_BUILD_TESTING OR RTAUDIO_BUILD_TESTING STREQUAL "")
set(RTAUDIO_BUILD_TESTING ${BUILD_TESTING})
endif()
if (RTAUDIO_BUILD_TESTING)
include(CTest)
add_subdirectory(tests)
endif()

Expand Down

0 comments on commit 36b03e2

Please sign in to comment.