diff --git a/CMakeLists.txt b/CMakeLists.txt index 8feb91be..1553ffa9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,8 @@ function(add_precompiled_vulkan_spirv target) endfunction() function(target_base_address target address) + set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE off) + if(CMAKE_CXX_COMPILER_LINKER_ID MATCHES "^(LLD|MOLD)$") target_link_options(${target} PUBLIC "LINKER:--image-base=${address}") else()