mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
22 lines
758 B
Text
22 lines
758 B
Text
--- CMakeLists.txt.orig 2024-07-17 20:27:26 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -321,8 +321,10 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
|
|
include(GoogleBenchmark)
|
|
endif(CLAD_ENABLE_BENCHMARKS)
|
|
|
|
+ if (FREEBSD_BUILD_DEMOS)
|
|
add_subdirectory(demos/ErrorEstimation/CustomModel)
|
|
add_subdirectory(demos/ErrorEstimation/PrintModel)
|
|
+ endif()
|
|
|
|
if (NOT CLAD_DISABLE_TESTS OR CLAD_ENABLE_BENCHMARKS)
|
|
# Change the default compiler to the clang which we run clad upon. Our unittests
|
|
@@ -337,7 +339,7 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
|
|
string(REPLACE "-Wno-class-memaccess" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
endif()
|
|
|
|
- if (NOT CLAD_DISABLE_TESTS)
|
|
+ if (FREEBSD_BUILD_TESTS)
|
|
add_subdirectory(unittests)
|
|
add_subdirectory(test)
|
|
endif()
|