Skip to content

Commit

Permalink
refactor: update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jul 21, 2024
1 parent 8b9c6eb commit 49ec2de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@ if (UNIX)
target_compile_options(endstone_runtime PRIVATE "-fvisibility=hidden" "-fms-extensions")
endif ()

if (WIN32)
add_library(endstone_runtime_loader SHARED "src/endstone_runtime/loader.cpp")
target_compile_definitions(endstone_runtime_loader PRIVATE _CRT_SECURE_NO_WARNINGS ENDSTONE_RUNTIME_LOADER)
endif ()

include(GNUInstallDirs)
install(TARGETS endstone_runtime
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand All @@ -168,6 +163,8 @@ if (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
endif ()

if (WIN32)
add_library(endstone_runtime_loader SHARED "src/endstone_runtime/loader.cpp")
target_compile_definitions(endstone_runtime_loader PRIVATE _CRT_SECURE_NO_WARNINGS ENDSTONE_RUNTIME_LOADER)
install(TARGETS endstone_runtime_loader DESTINATION "endstone/_internal/" COMPONENT endstone_wheel OPTIONAL)
endif ()

Expand Down

0 comments on commit 49ec2de

Please sign in to comment.