Add clsparse
This commit is contained in:
53
pkgs/clsparse/install_target.patch
Normal file
53
pkgs/clsparse/install_target.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3d139ed..15ffc14 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -176,32 +179,22 @@ if( BUILD_clSPARSE OR BUILD_SAMPLES )
|
||||
if( BUILD_clSPARSE )
|
||||
message( STATUS "Setting up clSPARSE external..." )
|
||||
|
||||
- if ( BUILD_SAMPLES )
|
||||
- # If the user elects to build samples, then we must build and install clSPARSE
|
||||
- # The install location is set as a subdirectory of the SuperBuild
|
||||
- ExternalProject_Add(
|
||||
- clSPARSE
|
||||
- DEPENDS ${clSPARSE.Dependencies}
|
||||
- SOURCE_DIR ${PROJECT_SOURCE_DIR}/src
|
||||
- BINARY_DIR clSPARSE-build
|
||||
- INSTALL_DIR clSPARSE-package
|
||||
- CMAKE_ARGS ${clSPARSE.Cmake.Args} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||
- -DBUILD_CLVERSION=${BUILD_CLVERSION} -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
- -DUSE_SYSTEM_CL2HPP:BOOL=${USE_SYSTEM_CL2HPP}
|
||||
- )
|
||||
- else( )
|
||||
- # If the user does not want to build samples, then build clSPARSE but don't automatically
|
||||
- # install it
|
||||
- ExternalProject_Add(
|
||||
- clSPARSE
|
||||
- DEPENDS ${clSPARSE.Dependencies}
|
||||
- SOURCE_DIR ${PROJECT_SOURCE_DIR}/src
|
||||
- BINARY_DIR clSPARSE-build
|
||||
- CMAKE_ARGS ${clSPARSE.Cmake.Args} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||
- -DBUILD_CLVERSION=${BUILD_CLVERSION} -DUSE_SYSTEM_CL2HPP:BOOL=${USE_SYSTEM_CL2HPP}
|
||||
- INSTALL_COMMAND ""
|
||||
- )
|
||||
- endif( )
|
||||
+ ExternalProject_Add(
|
||||
+ clSPARSE
|
||||
+ DEPENDS ${clSPARSE.Dependencies}
|
||||
+ SOURCE_DIR ${PROJECT_SOURCE_DIR}/src
|
||||
+ BINARY_DIR clSPARSE-build
|
||||
+ INSTALL_DIR clSPARSE-package
|
||||
+ CMAKE_ARGS ${clSPARSE.Cmake.Args} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||
+ -DBUILD_CLVERSION=${BUILD_CLVERSION} -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
+ -DUSE_SYSTEM_CL2HPP:BOOL=${USE_SYSTEM_CL2HPP}
|
||||
+ )
|
||||
+
|
||||
+ install(
|
||||
+ DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/clSPARSE-package/
|
||||
+ DESTINATION ${CMAKE_INSTALL_PREFIX}
|
||||
+ USE_SOURCE_PERMISSIONS
|
||||
+ )
|
||||
|
||||
endif( )
|
||||
|
||||
Reference in New Issue
Block a user