update cmake's README.md
diff --git a/build/cmake/README.md b/build/cmake/README.md index 3733912..44d42b2 100644 --- a/build/cmake/README.md +++ b/build/cmake/README.md
@@ -5,22 +5,19 @@ Build xxHash targets: cd </path/to/xxHash/> - mkdir build - cd build - cmake ../cmake_unofficial [options] - cmake --build . - cmake --build . --target install #optional + cmake -S build/cmake -B cmake_build + cmake --build cmake_build --parallel + cmake --install cmake_build Where possible options are: -- `-DXXHASH_BUILD_ENABLE_INLINE_API=<ON|OFF>`: adds xxhash.c for the `-DXXH_INLINE_ALL` api. ON by default. - `-DXXHASH_BUILD_XXHSUM=<ON|OFF>`: build the command line binary. ON by default - `-DBUILD_SHARED_LIBS=<ON|OFF>`: build dynamic library. ON by default. - `-DCMAKE_INSTALL_PREFIX=<path>`: use custom install prefix path. -- `-DDISPATCH=<ON|OFF>`: enable dispatch mode. OFF by default. +- `-DDISPATCH=<ON|OFF>`: enable dispatch mode. Default is ON for x64 cpus, OFF otherwise. Add lines into downstream CMakeLists.txt: - find_package(xxHash 0.7 CONFIG REQUIRED) + find_package(xxHash 0.8 CONFIG REQUIRED) ... target_link_libraries(MyTarget PRIVATE xxHash::xxhash) @@ -31,7 +28,7 @@ ... set(XXHASH_BUILD_ENABLE_INLINE_API OFF) #optional set(XXHASH_BUILD_XXHSUM OFF) #optional - add_subdirectory(</path/to/xxHash/cmake_unofficial/> </path/to/xxHash/build/> EXCLUDE_FROM_ALL) + add_subdirectory(</path/to/xxHash/build/cmake/> </path/to/xxHash/build/> EXCLUDE_FROM_ALL) ... target_link_libraries(MyTarget PRIVATE xxHash::xxhash)