Skip to content

Commit 7ebb246

Browse files
authored
Merge pull request #10666 from reyoung/feature/fix_ninja_build
Polish cmake
2 parents 4473eff + dca1c27 commit 7ebb246

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

cmake/external/snappy.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ ExternalProject_Add(
4747
-DCMAKE_INSTALL_LIBDIR:PATH=${SNAPPY_INSTALL_DIR}/lib
4848
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
4949
-DCMAKE_BUILD_TYPE:STRING=${THIRD_PARTY_BUILD_TYPE}
50-
BUILD_COMMAND make -j8
51-
INSTALL_COMMAND make install
5250
)
5351

5452
add_library(snappy STATIC IMPORTED GLOBAL)

cmake/external/snappystream.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ ExternalProject_Add(
4646
-DCMAKE_INSTALL_PREFIX:PATH=${SNAPPYSTREAM_INSTALL_DIR}
4747
-DCMAKE_INSTALL_LIBDIR:PATH=${SNAPPYSTREAM_INSTALL_DIR}/lib
4848
-DCMAKE_BUILD_TYPE:STRING=${THIRD_PARTY_BUILD_TYPE}
49-
BUILD_COMMAND make -j8
50-
INSTALL_COMMAND make install
5149
DEPENDS snappy
5250
)
5351

paddle/fluid/platform/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
proto_library(profiler_proto SRCS profiler.proto)
1+
proto_library(profiler_proto SRCS profiler.proto DEPS framework_proto)
22
py_proto_compile(profiler_py_proto SRCS profiler.proto)
33

44
add_custom_target(profiler_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E touch __init__.py)

0 commit comments

Comments
 (0)