From beae17e68da681c83ef9b9eed3cfc90eebf5a4e2 Mon Sep 17 00:00:00 2001 From: Marcus Tomlinson Date: Wed, 4 Oct 2023 11:14:36 +0100 Subject: [PATCH] Fix static build on Windows --- tests/CMakeLists.txt | 2 +- tutorial/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ae635a03..0bc8847f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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 diff --git a/tutorial/CMakeLists.txt b/tutorial/CMakeLists.txt index 3b17965d..0c077382 100755 --- a/tutorial/CMakeLists.txt +++ b/tutorial/CMakeLists.txt @@ -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