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