Skip to content

Commit

Permalink
move enable_testing() directive to top-level CMakeLists.txt to fix te…
Browse files Browse the repository at this point in the history
…sts showing up in Visual Studio
  • Loading branch information
nam20485 committed May 14, 2024
1 parent 46fc55c commit 038f875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ FetchContent_Declare(
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)

enable_testing()

# Enable Hot Reload for MSVC compilers if supported.
if (POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
Expand Down
2 changes: 0 additions & 2 deletions OdbDesignTests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# CMakeList.txt : CMake project for OdbDesignTests
#

enable_testing()

add_executable(OdbDesignTests
"Fixtures/FileArchiveLoadFixture.h"
"Fixtures/FileArchiveLoadFixture.cpp"
Expand Down

0 comments on commit 038f875

Please sign in to comment.