From accb7b5d95c6172d8c40e643dff4fd505cde0164 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 24 Oct 2018 22:40:02 +0800 Subject: [PATCH] Polish code --- cmake/external/xxhash.cmake | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/cmake/external/xxhash.cmake b/cmake/external/xxhash.cmake index 0472a16e2..293f11925 100644 --- a/cmake/external/xxhash.cmake +++ b/cmake/external/xxhash.cmake @@ -9,15 +9,13 @@ ExternalProject_Add( extern_xxhash ${EXTERNAL_PROJECT_LOG_ARGS} GIT_REPOSITORY "https://github.com/Cyan4973/xxHash" - # eigen on cuda9.1 missing header of math_funtions.hpp - # https://stackoverflow.com/questions/43113508/math-functions-hpp-not-found-when-using-cuda-with-eigen GIT_TAG "v0.6.5" PREFIX ${XXHASH_SOURCE_DIR} DOWNLOAD_NAME "xxhash" UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_IN_SOURCE 1 - PATCH_COMMAND + PATCH_COMMAND BUILD_COMMAND make lib INSTALL_COMMAND export PREFIX=${XXHASH_INSTALL_DIR}/ && make install TEST_COMMAND "" @@ -29,15 +27,6 @@ INCLUDE_DIRECTORIES(${XXHASH_INCLUDE_DIR}) add_library(xxhash STATIC IMPORTED GLOBAL) set_property(TARGET xxhash PROPERTY IMPORTED_LOCATION ${XXHASH_LIBRARIES}) -#if (${CMAKE_VERSION} VERSION_LESS "3.3.0") -# set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/lib_xxhash_dummy.c) -# file(WRITE ${dummyfile} "const char * dummy_any = \"${dummyfile}\";") -# add_library(lib_xxhash STATIC ${dummyfile}) -#else() -# add_library(lib_xxhash INTERFACE) -#endif() include_directories(${XXHASH_INCLUDE_DIR}) add_dependencies(xxhash extern_xxhash) -#LIST(APPEND external_project_dependencies xxhash) -#link_libraries(${XXHASH_LIBRARIES}) -- GitLab