conditionally use jenkins jni path
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
aa7c54429e
commit
4c0d591f2a
@ -9,9 +9,12 @@ include_directories(src/fluid/includes)
|
|||||||
|
|
||||||
# include jni
|
# include jni
|
||||||
set(JAVA_AWT_LIBRARY NotNeeded)
|
set(JAVA_AWT_LIBRARY NotNeeded)
|
||||||
# /usr/lib/jvm/java-17-openjdk-amd64/include
|
if(EXISTS "/usr/lib/jvm/java-17-openjdk-amd64/include")
|
||||||
find_package(JNI REQUIRED)
|
include_directories(/usr/lib/jvm/java-17-openjdk-amd64/include)
|
||||||
include_directories(${JNI_INCLUDE_DIRS})
|
else()
|
||||||
|
find_package(JNI REQUIRED)
|
||||||
|
include_directories(${JNI_INCLUDE_DIRS})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Create shared library
|
# Create shared library
|
||||||
add_library(StormEngine SHARED ${SOURCES})
|
add_library(StormEngine SHARED ${SOURCES})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user