@@ -6,33 +6,11 @@ set (CMakeHelloWorld_VERSION_MAJOR 1)
66set (CMakeHelloWorld_VERSION_MINOR 0)
77
88# Find the BLAS stuff
9+ set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /cmake ${CMAKE_MODULE_PATH} )
910find_package (BLAS REQUIRED)
1011
1112message (STATUS "BLAS Libraries: ${BLAS_LIBRARIES} " )
1213
13- # find_path(BLAS_INCLUDE_DIRS NAMES cblas.h)
14- # message(STATUS "BLAS Include: ${BLAS_INCLUDE_DIRS}")
15- # include_directories(${BLAS_INCLUDE_DIRS})
16-
17- set (BLA_DEFINITIONS)
18- if (BLA_VENDOR MATCHES Intel)
19- if ("$ENV{MKLROOT} " STREQUAL "" )
20- message (FATAL_ERROR "MKLROOT is not set. Please source the Intel MKL mklvars.sh file." )
21- endif ()
22- find_path (MKL_INCLUDE_DIRS NAMES mkl.h
23- PATHS $ENV{MKLROOT} /include /)
24- message (STATUS "MKL Include: ${MKL_INCLUDE_DIRS} " )
25- include_directories (${MKL_INCLUDE_DIRS} )
26- set (BLA_DEFINITIONS USE_MKL)
27- elseif (BLA_VENDOR MATCHES ATLAS)
28- find_library (CBLAS_LIB NAMES cblas)
29- set (BLAS_LIBRARIES "${BLAS_LIBRARIES} ;${CBLAS_LIB} " )
30- endif ()
31-
32- # include_directories(SYSTEM
33- # C:\\nuget_openblas\\OpenBLAS.0.2.14.1\\lib\\native\\include\\
34- # C:\\OpenBLAS.0.2.14.1\\lib\\native\\include\\)
35-
3614#include the subdirectory containing our libs
3715add_subdirectory (Hello)
3816include_directories (Hello)
0 commit comments