We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefb73d commit 9f93e35Copy full SHA for 9f93e35
1 file changed
CMakeLists.txt
@@ -13,6 +13,13 @@ FetchContent_Declare(
13
)
14
FetchContent_MakeAvailable(endstone)
15
16
+if (MSVC)
17
+ add_compile_definitions(_ITERATOR_DEBUG_LEVEL=0)
18
+else ()
19
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -fPIC")
20
+ link_libraries(-static-libgcc -static-libstdc++ libc++.a libc++abi.a)
21
+endif ()
22
+
23
add_library(${PROJECT_NAME} SHARED src/example_plugin.cpp)
24
target_include_directories(${PROJECT_NAME} PUBLIC include)
25
target_link_libraries(${PROJECT_NAME} PRIVATE endstone::headers)
0 commit comments