Skip to content

Commit

Permalink
make cmake friendly to user (PaddlePaddle#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostML committed Jul 3, 2021
1 parent b17a3bd commit 0b4cc4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddlenlp/ops/cmake/external/boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ set(BOOST_URL "http://paddlepaddledeps.bj.bcebos.com/${BOOST_TAR}.tar.gz" CACHE

MESSAGE(STATUS "BOOST_TAR: ${BOOST_TAR}, BOOST_URL: ${BOOST_URL}")

set(THIRD_PARTY_PATH ${CMAKE_BINARY_DIR}/${THIRD_PATH}/source)

set(BOOST_SOURCES_DIR ${THIRD_PARTY_PATH}/boost)
set(BOOST_DOWNLOAD_DIR "${BOOST_SOURCES_DIR}/src/${BOOST_PROJECT}")

Expand Down
2 changes: 2 additions & 0 deletions paddlenlp/ops/faster_transformer/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
add_definitions(-DNDEBUG)
add_definitions(-DPADDLE_CUDA)
# Default is 1 in standard c++ when using gcc8.2
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)

if(ON_INFER)
add_definitions(-DPADDLE_ON_INFERENCE)
Expand Down

0 comments on commit 0b4cc4c

Please sign in to comment.