File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,8 +256,8 @@ if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
256256endif ()
257257
258258# Determine if long double and double are the same size
259- include (CheckCSourceCompiles )
260- check_c_source_compiles ( "
259+ include (CheckSourceCompiles )
260+ check_source_compiles ( C "
261261#include <float.h>
262262#if (LDBL_MANT_DIG == DBL_MANT_DIG)
263263#error \" long double and double are the same size\"
@@ -514,14 +514,14 @@ endif()
514514
515515
516516# Filter out C implementation from compilation list if a native implementation exists
517- foreach (FILE_TO_REMOVE ${ OPENLIBM_ASM_SOURCE} )
517+ foreach (FILE_TO_REMOVE IN LISTS OPENLIBM_ASM_SOURCE)
518518 # Get filename and strip out extension
519519 cmake_path (GET FILE_TO_REMOVE FILENAME FILENAME_TO_REMOVE )
520520 cmake_path (REMOVE_EXTENSION FILENAME_TO_REMOVE OUTPUT_VARIABLE FILENAME_TO_REMOVE )
521521 message (DEBUG "Filename to remove: ${FILENAME_TO_REMOVE} " )
522522
523523 # Go through files and remove one with the same name
524- foreach (CUR_FILE ${ OPENLIBM_C_SOURCE} )
524+ foreach (CUR_FILE IN LISTS OPENLIBM_C_SOURCE)
525525 cmake_path (GET CUR_FILE FILENAME CUR_FILENAME )
526526 cmake_path (REMOVE_EXTENSION CUR_FILENAME OUTPUT_VARIABLE CUR_FILENAME )
527527
You can’t perform that action at this time.
0 commit comments