Skip to content

Commit

Permalink
No SHARED EVER
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Dec 7, 2024
1 parent 5b06261 commit 5a89ec4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
- name: Build CMake
run: |
Expand Down
8 changes: 0 additions & 8 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ if(WIN32)
PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${SFML_SOURCE_DIR}/extlibs/bin/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,x64,x86>/openal32.dll $<TARGET_FILE_DIR:8ChocChip>
VERBATIM)

add_custom_command(
TARGET 8ChocChip POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPENDENCY_BUILD_DIR}/nfd.dll
${DEPENDENCY_BUILD_DIR}/libconfig++.dll
$<TARGET_FILE_DIR:8ChocChip>
)

if (BUILD_SHARED_LIBS)
add_custom_command(TARGET 8ChocChip POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
Expand Down

0 comments on commit 5a89ec4

Please sign in to comment.