Skip to content

Commit da1b605

Browse files
committed
fix for windows
1 parent 4181c51 commit da1b605

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

yoga/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ file(GLOB SOURCES CONFIGURE_DEPENDS
2424
${CMAKE_CURRENT_SOURCE_DIR}/**/*.cpp)
2525

2626
if(BUILD_SHARED_LIBS)
27-
add_library(yogacore SHARED ${SOURCES})
27+
if(WIN32)
28+
add_library(yogacore MODULE ${SOURCES})
29+
else()
30+
add_library(yogacore SHARED ${SOURCES})
31+
endif()
2832
else()
2933
add_library(yogacore STATIC ${SOURCES})
3034
endif()

0 commit comments

Comments
 (0)