Skip to content

Commit accb7b5

Browse files
committed
Polish code
1 parent 8a0f26f commit accb7b5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

cmake/external/xxhash.cmake

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ ExternalProject_Add(
99
extern_xxhash
1010
${EXTERNAL_PROJECT_LOG_ARGS}
1111
GIT_REPOSITORY "https://github.com/Cyan4973/xxHash"
12-
# eigen on cuda9.1 missing header of math_funtions.hpp
13-
# https://stackoverflow.com/questions/43113508/math-functions-hpp-not-found-when-using-cuda-with-eigen
1412
GIT_TAG "v0.6.5"
1513
PREFIX ${XXHASH_SOURCE_DIR}
1614
DOWNLOAD_NAME "xxhash"
1715
UPDATE_COMMAND ""
1816
CONFIGURE_COMMAND ""
1917
BUILD_IN_SOURCE 1
20-
PATCH_COMMAND
18+
PATCH_COMMAND
2119
BUILD_COMMAND make lib
2220
INSTALL_COMMAND export PREFIX=${XXHASH_INSTALL_DIR}/ && make install
2321
TEST_COMMAND ""
@@ -29,15 +27,6 @@ INCLUDE_DIRECTORIES(${XXHASH_INCLUDE_DIR})
2927

3028
add_library(xxhash STATIC IMPORTED GLOBAL)
3129
set_property(TARGET xxhash PROPERTY IMPORTED_LOCATION ${XXHASH_LIBRARIES})
32-
#if (${CMAKE_VERSION} VERSION_LESS "3.3.0")
33-
# set(dummyfile ${CMAKE_CURRENT_BINARY_DIR}/lib_xxhash_dummy.c)
34-
# file(WRITE ${dummyfile} "const char * dummy_any = \"${dummyfile}\";")
35-
# add_library(lib_xxhash STATIC ${dummyfile})
36-
#else()
37-
# add_library(lib_xxhash INTERFACE)
38-
#endif()
3930
include_directories(${XXHASH_INCLUDE_DIR})
4031
add_dependencies(xxhash extern_xxhash)
41-
#LIST(APPEND external_project_dependencies xxhash)
42-
#link_libraries(${XXHASH_LIBRARIES})
4332

0 commit comments

Comments
 (0)