Skip to content

Commit 366645f

Browse files
committed
Build PIC in JNI only path
1 parent 48ff3d3 commit 366645f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,16 @@ if (NOT BUILD_JNI_ONLY)
203203
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
204204
endif()
205205

206-
if(BUILD_JNI OR BUILD_JNI_ONLY)
206+
if (BUILD_JNI_ONLY)
207207
set(DEPENDENCY_DOWNLOAD_PATH ${CMAKE_CURRENT_SOURCE_DIR}/dependency)
208208
set(BUILD_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
209209
fetch_repo(kvspic ${BUILD_ARGS})
210210
add_subdirectory("${DEPENDENCY_DOWNLOAD_PATH}/libkvspic/kvspic-src")
211211
file(GLOB PIC_HEADERS "${pic_project_SOURCE_DIR}/src/*/include")
212212
include_directories("${PIC_HEADERS}")
213+
endif()
213214

215+
if(BUILD_JNI OR BUILD_JNI_ONLY)
214216
find_package(JNI REQUIRED)
215217
include_directories(${JNI_INCLUDE_DIRS})
216218

0 commit comments

Comments
 (0)