Skip to content

Commit

Permalink
[cmake] Do not build the error estimation codes with differentiable c…
Browse files Browse the repository at this point in the history
…lang.

We do not need to use a clad-compatible clang to build the error estimation
demos.
  • Loading branch information
vgvassilev committed Apr 6, 2024
1 parent 1649bf4 commit 21fdf9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
include(GoogleBenchmark)
endif(CLAD_ENABLE_BENCHMARKS)

add_subdirectory(demos/ErrorEstimation/CustomModel)
add_subdirectory(demos/ErrorEstimation/PrintModel)

# Change the default compiler to the clang which we run clad upon. Our unittests
# need to use a supported by clad compiler. Note that's a huge hack and it is
# not guaranteed to work with cmake.
Expand All @@ -330,8 +333,6 @@ if (NOT CLAD_BUILD_STATIC_ONLY)

add_subdirectory(unittests)
add_subdirectory(test)
add_subdirectory(demos/ErrorEstimation/CustomModel)
add_subdirectory(demos/ErrorEstimation/PrintModel)

# Add benchmarking infrastructure.
if (CLAD_ENABLE_BENCHMARKS)
Expand Down

0 comments on commit 21fdf9e

Please sign in to comment.