Skip to content

Commit

Permalink
Add C++14 compiler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Mar 23, 2024
1 parent 1600d84 commit aee61c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/double_integer_division.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ include(CMakePushCheckState)
cmake_push_check_state()
set(CMAKE_REQUIRED_INCLUDES "${PROJECT_SOURCE_DIR}/include")

if(CMAKE_CXX14_EXTENSION_COMPILE_OPTION)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_CXX14_EXTENSION_COMPILE_OPTION} ${CMAKE_CXX_FLAGS}")
elseif(CMAKE_CXX14_STANDARD_COMPILE_OPTION)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_CXX14_STANDARD_COMPILE_OPTION} ${CMAKE_CXX_FLAGS}")
endif()

check_cxx_source_compiles("
#define ENABLE_DOUBLE_INTEGER_DIVISION
#include <fast_div.hpp>
Expand Down

0 comments on commit aee61c0

Please sign in to comment.