Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
0ae0534e
Commit
0ae0534e
authored
Mar 26, 2015
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
begin macro to install packages generically
parent
0facfde4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
CMakeLists.txt
CMakeLists.txt
+8
-1
cmake_modules/morse/MorseInit.cmake
cmake_modules/morse/MorseInit.cmake
+3
-0
cmake_modules/morse/find/FindCBLAS.cmake
cmake_modules/morse/find/FindCBLAS.cmake
+3
-1
No files found.
CMakeLists.txt
View file @
0ae0534e
...
...
@@ -303,7 +303,14 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
list
(
APPEND CMAKE_EXE_LINKER_FLAGS
"
${
BLAS_LINKER_FLAGS
}
"
)
endif
()
else
()
message
(
FATAL_ERROR
"A BLAS library is required but has not been found"
)
message
(
FATAL_ERROR
"BLAS library has not been found"
)
#install_package(BLAS DOWNLOAD)
#find_package(BLASEXT)
#if (BLAS_FOUND)
# message(STATUS "BLAS library has been found after automatic installation")
#else()
# message(FATAL_ERROR "BLAS library has not been found after automatic installation")
#endif()
endif
()
if
(
CBLAS_FOUND
)
include_directories
(
${
CBLAS_INCLUDE_DIRS
}
)
...
...
cmake_modules/morse/MorseInit.cmake
View file @
0ae0534e
...
...
@@ -46,6 +46,9 @@ include(AuxilaryFlags)
# Add the path where we handle our FindFOO.cmake to seek for liraries
list
(
APPEND CMAKE_MODULE_PATH
${
MORSE_CMAKE_MODULE_PATH
}
/find
)
# Install libraries if not discovered on the system
include
(
InstallPackage
)
option
(
MORSE_VERBOSE_FIND_PACKAGE
"Add additional messages concerning no found packages"
OFF
)
#message("-- ${BoldGreen}MORSE_VERBOSE_FIND_PACKAGE is set to OFF, turn it ON to get"
# "information about packages not found${ColourReset}")
...
...
cmake_modules/morse/find/FindCBLAS.cmake
View file @
0ae0534e
...
...
@@ -102,7 +102,9 @@ endif()
if
(
CBLAS_FIND_COMPONENTS
)
foreach
(
component
${
CBLAS_FIND_COMPONENTS
}
)
if
(
CBLAS_FIND_REQUIRED_
${
component
}
)
find_package
(
${
component
}
REQUIRED
)
if
(
CBLAS_FIND_REQUIRED
)
find_package
(
${
component
}
REQUIRED
)
endif
()
else
()
find_package
(
${
component
}
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment