hadoop/fix-container-executor-cmak...

33 lines
1.3 KiB
Diff

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/CMakeLists.txt b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/CMakeLists.txt
index ba2eae2..76daaab 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/CMakeLists.txt
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/CMakeLists.txt
@@ -57,24 +57,12 @@ include_directories(
)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
-add_library(container
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+add_executable(container-executor
+ main/native/container-executor/impl/main.c
main/native/container-executor/impl/configuration.c
main/native/container-executor/impl/container-executor.c
main/native/container-executor/impl/get_executable.c
)
-
-add_executable(container-executor
- main/native/container-executor/impl/main.c
-)
-target_link_libraries(container-executor
- container
-)
output_directory(container-executor target/usr/local/bin)
-add_executable(test-container-executor
- main/native/container-executor/test/test-container-executor.c
-)
-target_link_libraries(test-container-executor
- container ${EXTRA_LIBS}
-)
-output_directory(test-container-executor target/usr/local/bin)