From 357c19771f548a19ae1ddb4c0e46a568f565538a Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 10 Dec 2021 10:56:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=20=D1=83=D0=BC=D0=BE=D0=BB=D1=87?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D1=8F=D0=B5=D0=BC=D1=8B=D0=B9=20=D1=84=D0=B0=D0=B9=D0=BB=20?= =?UTF-8?q?=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=B0=D0=B2=D0=BB=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B2=20${CMAKE=5FINSTALL=5FB?= =?UTF-8?q?INDIR}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake b/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake index 18dca1f..5377c0c 100644 --- a/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake +++ b/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake @@ -51,16 +51,16 @@ function(myx_cmake_common_target_properties target) target_compile_features(${target} ${__visibility} cxx_alias_templates cxx_nullptr cxx_override) if(_target_type STREQUAL EXECUTABLE) - set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON) - set_target_properties( - ${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY - ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}) + set_target_properties(${target} PROPERTIES + POSITION_INDEPENDENT_CODE ON + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}) if(CMAKE_CXX_COMPILE_OPTIONS_PIE) target_compile_options(${target} PUBLIC ${CMAKE_CXX_COMPILE_OPTIONS_PIE}) endif() if(CMAKE_CXX_COMPILER_IS_GCC AND MYX_CMAKE_CODE_COVERAGE) myx_cmake_code_coverage(${target}) endif() + install(TARGETS ${target} COMPONENT main RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() if(APPLE)