aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/cmake/Modules/CMakeRC.cmake1
-rw-r--r--host/lib/rc/CMakeLists.txt1
2 files changed, 1 insertions, 1 deletions
diff --git a/host/cmake/Modules/CMakeRC.cmake b/host/cmake/Modules/CMakeRC.cmake
index d1e389b93..81a447c8e 100644
--- a/host/cmake/Modules/CMakeRC.cmake
+++ b/host/cmake/Modules/CMakeRC.cmake
@@ -499,7 +499,6 @@ function(cmrc_add_resource_library name)
set_property(TARGET ${name} PROPERTY CMRC_NAMESPACE "${ARG_NAMESPACE}")
target_link_libraries(${name} PUBLIC cmrc::base)
set_property(TARGET ${name} PROPERTY CMRC_IS_RESOURCE_LIBRARY TRUE)
- set_property(TARGET ${name} PROPERTY POSITION_INDEPENDENT_CODE ON)
if(ARG_ALIAS)
add_library("${ARG_ALIAS}" ALIAS ${name})
endif()
diff --git a/host/lib/rc/CMakeLists.txt b/host/lib/rc/CMakeLists.txt
index d2a01bffb..52b6693c0 100644
--- a/host/lib/rc/CMakeLists.txt
+++ b/host/lib/rc/CMakeLists.txt
@@ -10,3 +10,4 @@ cmrc_add_resource_library(uhd-resources
NAMESPACE rc
cal/test.cal
)
+set_property(TARGET uhd-resources PROPERTY POSITION_INDEPENDENT_CODE ON)