Skip to content

Commit

Permalink
Ensure CXX is enable when benchmarks are built
Browse files Browse the repository at this point in the history
When benchmarks are built, SLEEF_ENABLE_CXX should be
set to ON, since they use cpp.
  • Loading branch information
joanaxcruz committed Oct 18, 2024
1 parent ad582e4 commit 65bdfa0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ option(SLEEF_ENABLE_CXX "Enable C++" OFF)

#

if (SLEEF_BUILD_BENCH)
set(SLEEF_ENABLE_CXX ON)
endif ()

if (DEFINED SLEEF_BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ${SLEEF_BUILD_SHARED_LIBS})
endif ()
Expand Down

0 comments on commit 65bdfa0

Please sign in to comment.