@@ -300,15 +300,14 @@ foreach(_plugin ${HPX_STATIC_PARCELPORT_PLUGINS})
300
300
endforeach ()
301
301
302
302
# integrate the hpx modules with the main library
303
- set (_modules hpx_preprocessor)
304
- foreach (_module ${_modules} )
303
+ foreach (_module ${HPX_LIBS} )
305
304
# add module binaries as PRIVATE dependencies to the core hpx library to
306
305
# avoid dependent applicatons have to link against those
307
- target_link_libraries (hpx ${HPX_TLL_PRIVATE} ${_module} )
306
+ target_link_libraries (hpx ${HPX_TLL_PRIVATE} hpx_ ${_module} )
308
307
309
308
# add module include directories as PUBLIC to core hpx library to enable
310
309
# compilation against indirectly included headers
311
- get_target_property (_module_includes ${_module} INTERFACE_INCLUDE_DIRECTORIES )
310
+ get_target_property (_module_includes hpx_ ${_module} INTERFACE_INCLUDE_DIRECTORIES )
312
311
target_include_directories (hpx PUBLIC ${_module_includes} )
313
312
endforeach ()
314
313
@@ -355,10 +354,10 @@ if(NOT HPX_WITH_STATIC_LINKING)
355
354
endif ()
356
355
target_include_directories (hpx_init PRIVATE $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR} >)
357
356
358
- foreach (_module ${_modules } )
357
+ foreach (_module ${HPX_LIBS } )
359
358
# add module include directories as PRIVATE to the hpx_init library to
360
359
# enable its compilation against indirectly included headers
361
- get_target_property (_module_includes ${_module} INTERFACE_INCLUDE_DIRECTORIES )
360
+ get_target_property (_module_includes hpx_ ${_module} INTERFACE_INCLUDE_DIRECTORIES )
362
361
target_include_directories (hpx_init PRIVATE ${_module_includes} )
363
362
endforeach ()
364
363
@@ -402,10 +401,10 @@ if(HPX_WITH_DYNAMIC_HPX_MAIN AND (("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (
402
401
403
402
target_include_directories (hpx_wrap PRIVATE $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR} >)
404
403
405
- foreach (_module ${_modules } )
404
+ foreach (_module ${HPX_LIBS } )
406
405
# add module include directories as PRIVATE to the hpx_wrap library to
407
406
# enable its compilation against indirectly included headers
408
- get_target_property (_module_includes ${_module} INTERFACE_INCLUDE_DIRECTORIES )
407
+ get_target_property (_module_includes hpx_ ${_module} INTERFACE_INCLUDE_DIRECTORIES )
409
408
target_include_directories (hpx_wrap PRIVATE ${_module_includes} )
410
409
endforeach ()
411
410
0 commit comments