if we want to check for C++ includes, we should now check for cmath not math.h

This commit is contained in:
Axel Kohlmeyer 2019-01-09 09:18:55 -05:00
parent 3cbf009ce6
commit 6fbd0c08cc
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ endif()
# Basic system tests (standard libraries, headers, functions, types) #
########################################################################
include(CheckIncludeFileCXX)
foreach(HEADER math.h)
foreach(HEADER cmath)
check_include_file_cxx(${HEADER} FOUND_${HEADER})
if(NOT FOUND_${HEADER})
message(FATAL_ERROR "Could not find needed header - ${HEADER}")