Skip to content

Commit 94ea29f

Browse files
committed
chore: Use BUILD_SHARED_LIBS instead of checking for Emscripten directly
1 parent f2381d4 commit 94ea29f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ set(FILES
157157
include/JavaObject/type/object/parsers/descriptor/ProxyClassDescriptorInfoParser.h
158158
)
159159

160-
if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
161-
add_library(JavaObjectStreams STATIC ${FILES})
162-
else()
160+
if (BUILD_SHARED_LIBS)
163161
add_library(JavaObjectStreams SHARED ${FILES})
162+
else()
163+
add_library(JavaObjectStreams STATIC ${FILES})
164164
endif()
165165
target_include_directories(JavaObjectStreams
166166
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

0 commit comments

Comments
 (0)