Skip to content

Commit

Permalink
fixed enable_test
Browse files Browse the repository at this point in the history
  • Loading branch information
RedSkittleFox committed Jan 29, 2024
1 parent a520e45 commit fadcafb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ endif()

add_subdirectory( include )

if ( ATOMIC_QUEUE_BUILD_TESTS )
enable_testing()
endif()

if ( ATOMIC_QUEUE_BUILD_TESTS OR ATOMIC_QUEUE_BUILD_EXAMPLES)
add_subdirectory( src )
endif()
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ if ( ATOMIC_QUEUE_BUILD_EXAMPLES )
endif()

if ( ATOMIC_QUEUE_BUILD_TESTS )
enable_testing()
find_package(Boost REQUIRED COMPONENTS unit_test_framework)

add_executable(
Expand Down

0 comments on commit fadcafb

Please sign in to comment.