Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 committed Sep 22, 2022
1 parent 79a28e1 commit 3e32be1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions coordinator/gscoordinator/template/CMakeLists.template
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ elseif (CYTHON_PIE_APP)
set_target_properties(${FRAME_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
elseif (JAVA_PIE_APP)
if (ENABLE_JAVA_SDK)
# include jni------------------------------------------------------------------
find_package(JNI REQUIRED)
include_directories(SYSTEM ${JAVA_INCLUDE_PATH})
include_directories(SYSTEM ${JAVA_INCLUDE_PATH2})

#check whether we are using clang.
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
message(STATUS "Using Clang compiler: ${CMAKE_CXX_COMPILER}")
Expand All @@ -300,13 +305,6 @@ elseif (JAVA_PIE_APP)
endif()
endif()

# include jni------------------------------------------------------------------
if(ENABLE_JAVA_SDK)
find_package(JNI REQUIRED)
include_directories(SYSTEM ${JAVA_INCLUDE_PATH})
include_directories(SYSTEM ${JAVA_INCLUDE_PATH2})
endif()

# 0. codegen
execute_process(COMMAND java -cp ${PRE_CP} ${PROCESSOR_MAIN_CLASS} ${JAR_PATH} ${OUTPUT_DIR} $_graph_type
RESULT_VARIABLE ret)
Expand Down

0 comments on commit 3e32be1

Please sign in to comment.