-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from xianyi/develop
rebase
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
## | ||
## Author: Hank Anderson <[email protected]> | ||
## Description: Ported from portion of OpenBLAS/Makefile.system | ||
## Sets various variables based on architecture. | ||
|
@@ -80,10 +79,15 @@ if (DYNAMIC_ARCH) | |
string(REGEX REPLACE "-march=native" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") | ||
endif () | ||
if (DYNAMIC_LIST) | ||
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST}) | ||
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST}) | ||
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) | ||
message (STATUS "DYNAMIC_ARCH is not supported on this architecture, removing from options") | ||
unset(DYNAMIC_ARCH CACHE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters