commit
8ef600f1a3
|
@ -1,4 +1,3 @@
|
||||||
##
|
|
||||||
## Author: Hank Anderson <hank@statease.com>
|
## Author: Hank Anderson <hank@statease.com>
|
||||||
## Description: Ported from portion of OpenBLAS/Makefile.system
|
## Description: Ported from portion of OpenBLAS/Makefile.system
|
||||||
## Sets various variables based on architecture.
|
## Sets various variables based on architecture.
|
||||||
|
@ -84,6 +83,11 @@ if (DYNAMIC_ARCH)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
CHECK_INCLUDE_FILE ("${PROJECT_SOURCE_DIR}/config_kernel.h" TRAP)
|
||||||
|
if (TRAP)
|
||||||
|
message (FATAL_ERROR "Your build directory contains a file config_kernel.h, probably from a previous compilation with make. This will conflict with the cmake compilation and cause strange compiler errors - please remove the file before trying again")
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (NOT DYNAMIC_CORE)
|
if (NOT DYNAMIC_CORE)
|
||||||
message (STATUS "DYNAMIC_ARCH is not supported on this architecture, removing from options")
|
message (STATUS "DYNAMIC_ARCH is not supported on this architecture, removing from options")
|
||||||
unset(DYNAMIC_ARCH CACHE)
|
unset(DYNAMIC_ARCH CACHE)
|
||||||
|
|
|
@ -121,7 +121,6 @@ endif()
|
||||||
|
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
CHECK_INCLUDE_FILE("stdatomic.h" HAVE_C11)
|
CHECK_INCLUDE_FILE("stdatomic.h" HAVE_C11)
|
||||||
if (HAVE_C11 EQUAL 1)
|
if (HAVE_C11)
|
||||||
message (STATUS found stdatomic.h)
|
|
||||||
set (CCOMMON_OPT "${CCOMMON_OPT} -DHAVE_C11")
|
set (CCOMMON_OPT "${CCOMMON_OPT} -DHAVE_C11")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue