Skip to content

Commit

Permalink
Fix static build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Oct 4, 2023
1 parent f70081e commit beae17e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ target_link_libraries(
DSPatch
)

if(WIN32)
if(NOT ${BUILD_STATIC} AND WIN32)
if(MSVC)
add_custom_command(
TARGET ${PROJECT_NAME} POST_BUILD
Expand Down
2 changes: 1 addition & 1 deletion tutorial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target_link_libraries(
DSPatch
)

if(WIN32)
if(NOT ${BUILD_STATIC} AND WIN32)
if(MSVC)
add_custom_command(
TARGET ${PROJECT_NAME} POST_BUILD
Expand Down

0 comments on commit beae17e

Please sign in to comment.