From d11e8c1af9a9fc6889f1184c1bfa3da90e681f06 Mon Sep 17 00:00:00 2001 From: Andrei Malashkin Date: Fri, 20 Sep 2024 14:19:37 +0200 Subject: [PATCH] add pic --- crypto3/libs/pch/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto3/libs/pch/CMakeLists.txt b/crypto3/libs/pch/CMakeLists.txt index b83d815e00..74efa92ab4 100644 --- a/crypto3/libs/pch/CMakeLists.txt +++ b/crypto3/libs/pch/CMakeLists.txt @@ -17,6 +17,7 @@ cm_setup_version(VERSION 0.1.0 PREFIX ${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_ add_library(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} INTERFACE) target_precompile_headers(crypto3_pch INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/pch.h) +set_target_properties(crypto3_pch PROPERTIES INTERFACE_POSITION_INDEPENDENT_CODE ON) set_target_properties(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} PROPERTIES EXPORT_NAME ${CURRENT_PROJECT_NAME})