There was an error while loading. Please reload this page.
1 parent f2381d4 commit 94ea29fCopy full SHA for 94ea29f
1 file changed
CMakeLists.txt
@@ -157,10 +157,10 @@ set(FILES
157
include/JavaObject/type/object/parsers/descriptor/ProxyClassDescriptorInfoParser.h
158
)
159
160
-if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
161
- add_library(JavaObjectStreams STATIC ${FILES})
162
-else()
+if (BUILD_SHARED_LIBS)
163
add_library(JavaObjectStreams SHARED ${FILES})
+else()
+ add_library(JavaObjectStreams STATIC ${FILES})
164
endif()
165
target_include_directories(JavaObjectStreams
166
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0 commit comments