does manually adding the flag work?

This commit is contained in:
Matthew Kennedy 2023-11-03 22:39:53 -07:00 committed by rusefillc
parent ecd187d08b
commit b3e5d93a7a
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,8 @@ set(JAVA_AWT_INCLUDE_PATH NotNeeded)
find_package(JNI REQUIRED)
if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
# Build both arm64 and Intel
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
endif(APPLE)
set(CXX_STANDARD 20)
@ -29,6 +30,8 @@ endif()
add_library(openblt_jni SHARED)
add_compile_options("-std=c++11")
target_include_directories(openblt_jni PRIVATE ${LIBOPENBLT_INC})
target_include_directories(openblt_jni PRIVATE ${JNI_INCLUDE_DIRS})
target_link_directories(openblt_jni PRIVATE ${LIBOPENBLT_LIB})