diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2019-08-24 23:41:05 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2019-08-24 23:41:05 +0000 |
commit | ee740da1cc32aa3c2c1ad82147f3cf4037e19591 (patch) | |
tree | 4f7ceeda0a0bce2d8a28865404d6755697b6ea71 /math/blasfeo/files/patch-CMakeLists.txt | |
parent | Minor fixes (diff) |
New port: math/blasfeo: Basic Linear Algebra Subroutines For Embedded Optimization
Notes
Notes:
svn path=/head/; revision=509759
Diffstat (limited to 'math/blasfeo/files/patch-CMakeLists.txt')
-rw-r--r-- | math/blasfeo/files/patch-CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/math/blasfeo/files/patch-CMakeLists.txt b/math/blasfeo/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..6eba634bd39f --- /dev/null +++ b/math/blasfeo/files/patch-CMakeLists.txt @@ -0,0 +1,29 @@ +--- CMakeLists.txt.orig 2019-02-04 20:56:09 UTC ++++ CMakeLists.txt +@@ -95,7 +95,7 @@ configure_file(${PROJECT_SOURCE_DIR}/blasfeo_target.h. + #set(BUILD_SHARED_LIBS ON CACHE STRING "Build shared libraries") + + # installation directory +-if(CMAKE_INSTALL_PREFIX MATCHES "/usr/local") ++if(FALSE AND CMAKE_INSTALL_PREFIX MATCHES "/usr/local") + set(CMAKE_INSTALL_PREFIX "/opt/blasfeo") + endif() + +@@ -171,7 +171,7 @@ if(${MACRO_LEVEL} MATCHES 2) + endif() + + # +-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ++if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|DragonFly") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DOS_LINUX") + set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS} -DOS_LINUX") + endif() +@@ -827,7 +827,7 @@ install(TARGETS blasfeo EXPORT blasfeoConfig + RUNTIME DESTINATION bin) + + +-install(EXPORT blasfeoConfig DESTINATION cmake) ++install(EXPORT blasfeoConfig DESTINATION lib/cmake) + + file(GLOB_RECURSE BLASFEO_HEADERS "include/*.h") + install(FILES ${BLASFEO_HEADERS} DESTINATION ${BLASFEO_HEADERS_INSTALLATION_DIRECTORY}) |