We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1bba1 commit ffed5e9Copy full SHA for ffed5e9
cmake/external_rules.cmake
@@ -240,6 +240,9 @@ function(build_external_dependencies)
240
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
241
endif()
242
243
+ # Propagate the PIC setting, as the dependencies need to match it
244
+ set(CMAKE_SUB_CONFIGURE_OPTIONS ${CMAKE_SUB_CONFIGURE_OPTIONS}
245
+ -DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE})
246
message(STATUS "Sub-configure options: ${CMAKE_SUB_CONFIGURE_OPTIONS}")
247
message(STATUS "Sub-build options: ${CMAKE_SUB_BUILD_OPTIONS}")
248
0 commit comments