From 2fd60c4e4ce9e7ede6c302b6fd77579b3db93fe2 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 29 Jul 2023 09:57:57 -0400 Subject: [PATCH] fix --- tests/add_subdirectory-integration/CMakeLists.txt | 5 +++++ tests/findpackage-integration/CMakeLists.txt | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/add_subdirectory-integration/CMakeLists.txt b/tests/add_subdirectory-integration/CMakeLists.txt index 5704c34e..8ef7ef53 100644 --- a/tests/add_subdirectory-integration/CMakeLists.txt +++ b/tests/add_subdirectory-integration/CMakeLists.txt @@ -4,5 +4,10 @@ project(demo_project VERSION 0.0.1 LANGUAGES CXX) add_executable(main main.cpp) +if(WIN32) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") +endif() + add_subdirectory(libassert) target_link_libraries(main assert) diff --git a/tests/findpackage-integration/CMakeLists.txt b/tests/findpackage-integration/CMakeLists.txt index 48d51279..aa5febbf 100644 --- a/tests/findpackage-integration/CMakeLists.txt +++ b/tests/findpackage-integration/CMakeLists.txt @@ -4,10 +4,5 @@ project(demo_project VERSION 0.0.1 LANGUAGES CXX) add_executable(main main.cpp) -if(WIN32) - set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") - set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") -endif() - find_package(assert REQUIRED) target_link_libraries(main assert::assert)