From ab842cbd73cd2db82653033da7ba8009a9bc09ca Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 3 Feb 2024 10:41:11 +0100 Subject: [PATCH] build: Fix pattern language shared library ending up in the wrong folder on Linux --- cmake/build_helpers.cmake | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 7495013ed..799d909fa 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -610,12 +610,15 @@ macro(addBundledLibraries) set(LIBPL_BUILD_CLI_AS_EXECUTABLE OFF CACHE BOOL "" FORCE) set(LIBPL_SHARED_LIBRARY ON CACHE BOOL "" FORCE) add_subdirectory(${EXTERNAL_LIBS_FOLDER}/pattern_language EXCLUDE_FROM_ALL) - set_target_properties( - libpl - PROPERTIES - RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} - LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} - ) + + if (WIN32) + set_target_properties( + libpl + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} + ) + endif() enableUnityBuild(libpl) find_package(mbedTLS 3.4.0 REQUIRED)