Skip to content

Commit

Permalink
Fix CMakeFile by adding utf8 lib (PaddlePaddle#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidanqing-intel committed Oct 27, 2021
1 parent c7ec858 commit b9e5730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/mkldnn_quant/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ include_directories("${PADDLE_LIB}/third_party/install/glog/include")
include_directories("${PADDLE_LIB}/third_party/install/gflags/include")
include_directories("${PADDLE_LIB}/third_party/install/xxhash/include")
include_directories("${PADDLE_LIB}/third_party/install/cryptopp/include")
include_directories("${PADDLE_LIB}/third_party/install/utf8proc/include")
link_directories("${PADDLE_LIB}/third_party/install/protobuf/lib")
link_directories("${PADDLE_LIB}/third_party/install/glog/lib")
link_directories("${PADDLE_LIB}/third_party/install/gflags/lib")
link_directories("${PADDLE_LIB}/third_party/install/xxhash/lib")
link_directories("${PADDLE_LIB}/paddle/lib")
link_directories("${PADDLE_LIB}/third_party/install/cryptopp/lib")
link_directories("${PADDLE_LIB}/third_party/install/utf8proc/lib")

add_executable(${DEMO_NAME} ${DEMO_NAME}.cc)

Expand Down Expand Up @@ -55,7 +57,7 @@ endif()

set(EXTERNAL_LIB "-lrt -ldl -lpthread")
set(DEPS ${DEPS}
${MATH_LIB} ${MKLDNN_LIB} glog gflags xxhash protobuf cryptopp
${MATH_LIB} ${MKLDNN_LIB} glog gflags xxhash protobuf cryptopp utf8proc
${EXTERNAL_LIB})

target_link_libraries(${DEMO_NAME} ${DEPS})

0 comments on commit b9e5730

Please sign in to comment.