Skip to content

Commit

Permalink
Merge pull request #197 from BioDataAnalysis/bda_allow_static_build
Browse files Browse the repository at this point in the history
Do not enforce shared library build
  • Loading branch information
zeyiwen committed Feb 6, 2020
2 parents c0f06c2 + 2953b00 commit 7e39299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thundersvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ list(REMOVE_ITEM SRC "${CMAKE_CURRENT_LIST_DIR}/${PROJECT_NAME}-predict.cpp")
if (USE_CUDA)
file(GLOB SRC_KERNEL kernel/*.cu)
list(APPEND SRC ${SRC_KERNEL})
cuda_add_library(${PROJECT_LIB_NAME} SHARED ${SRC})
cuda_add_library(${PROJECT_LIB_NAME} ${SRC})
target_link_libraries(${PROJECT_LIB_NAME} ${CUDA_cusparse_LIBRARY})
cuda_add_executable(${PROJECT_NAME}-train thundersvm-train.cpp ${COMMON_INCLUDES})
cuda_add_executable(${PROJECT_NAME}-predict thundersvm-predict.cpp ${COMMON_INCLUDES})
else ()
file(GLOB SRC_KERNEL kernel/*.cpp)
list(APPEND SRC ${SRC_KERNEL})
add_library(${PROJECT_LIB_NAME} SHARED ${SRC})
add_library(${PROJECT_LIB_NAME} ${SRC})
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_link_libraries(${PROJECT_LIB_NAME} OpenMP::OpenMP_CXX)
endif()
Expand Down

0 comments on commit 7e39299

Please sign in to comment.