From b7d26a46f6f12928a01eca40caecf971e3bfb278 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 11 Sep 2025 20:23:10 +0100 Subject: [PATCH] Remove pointless conditional --- cmake/utils/set_output_dirs.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/utils/set_output_dirs.cmake b/cmake/utils/set_output_dirs.cmake index 9e64c1ba..40da9437 100644 --- a/cmake/utils/set_output_dirs.cmake +++ b/cmake/utils/set_output_dirs.cmake @@ -13,11 +13,7 @@ function(set_output_dirs TARGET) foreach(CONFIG ${CONFIGS}) string(TOUPPER ${CONFIG} CONFIG_UPPER) - if(ARG_SUBDIRECTORY) - set(OUT_DIR ${CMAKE_BINARY_DIR}/${CONFIG}/${ARG_SUBDIRECTORY}) - else() - set(OUT_DIR ${CMAKE_BINARY_DIR}/${CONFIG}) - endif() + set(OUT_DIR ${CMAKE_BINARY_DIR}/${CONFIG}/${ARG_SUBDIRECTORY}) set_target_properties(${TARGET} PROPERTIES LIBRARY_OUTPUT_DIRECTORY_${CONFIG_UPPER} ${OUT_DIR}