Skip to content

Commit

Permalink
fix auto unit test off with cmake older than 3.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Bac (linux) committed Dec 28, 2021
1 parent 2b9a89e commit b5a9205
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ include(GNUInstallDirs)
# options
#-----------------------------------------------------------------------------
option(FIXEDMATH_ENABLE_UNIT_TESTS "unit tests available from CTest" ON )

if(FIXEDMATH_ENABLE_UNIT_TESTS AND ${CMAKE_VERSION} VERSION_LESS "3.19.0")
message( STATUS "unit tests not available as require cmake CheckSourceCompiles added in 3.19")
set( FIXEDMATH_ENABLE_UNIT_TESTS OFF )
endif()

add_feature_info("FIXEDMATH_ENABLE_UNIT_TESTS" FIXEDMATH_ENABLE_UNIT_TESTS "unit test available from CTest")

option(FIXEDMATH_ENABLE_DEVEL_CODE "enable internaly used for development code" OFF )
Expand Down

0 comments on commit b5a9205

Please sign in to comment.