Skip to content

Commit

Permalink
Sacado: Add option for turning off Gtest if desired.
Browse files Browse the repository at this point in the history
This adds the option Sacado_ENABLE_GTest for turning off the Sacado GTest suite
(previously it was required if tests were turned on).  The included gtest does
not build on all platforms (for various reasons), so this allows one to turn
it off.

For issue #7778
  • Loading branch information
etphipp committed Aug 4, 2020
1 parent 82df5c2 commit 24715b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/sacado/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_VIEW_SPEC
"Enable Sacado specializations for Kokkos::View<...>"
ON )

TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_GTest
HAVE_SACADO_GTEST
"Enable internal GTest library for unit testing"
ON )

SET(Sacado_ENABLE_ADOLC_default OFF)
IF(TPL_ENABLE_ADOLC)
SET(Sacado_ENABLE_ADOLC_default ON)
Expand Down
4 changes: 3 additions & 1 deletion packages/sacado/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ADD_SUBDIRECTORY(GTestSuite)
IF (Sacado_ENABLE_GTest)
ADD_SUBDIRECTORY(GTestSuite)
ENDIF()
ADD_SUBDIRECTORY(UnitTests)
ADD_SUBDIRECTORY(tradoptest)
ADD_SUBDIRECTORY(performance)

0 comments on commit 24715b8

Please sign in to comment.