Static linking fails during CMake configuration
When setting -DHPX_WITH_STATIC_LINKING=ON CMake configuration fails at the end with
-- Configuring done
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_assertion" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_cache" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_collectives" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_config" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_hardware" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_preprocessor" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "accumulator_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "template_accumulator_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "template_function_accumulator_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "cancelable_action_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "jacobi_component_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "nqueen_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "sine_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "random_mem_access_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "startup_shutdown_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "throttle_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "simple_central_tuplespace_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "parcel_coalescing" which requires target "hpx_internal_flags" that is not in the export set.
-- Generating done
This is not very high priority for me so if someone needs it fixed let us know. Curiously this is exactly the error we had before making sure HPX modules are PRIVATE dependencies. I haven't yet figured out if this is a CMake bug or if there's something we can do about it.
This may actually work again now that we export more targets... I'll give this a try in the next days.
This may actually work again now that we export more targets... I'll give this a try in the next days.
Things are better, but still don't work. This is definitely fixable but I'll leave it until someone actually asks for this. Please speak up if you do need it!
If this will not be fixed for V1.4, please add a 'known problems' to the release notes.
Yeah, good idea. Will do!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.