Skip to content

Commit

Permalink
Implement the link_options application option.
Browse files Browse the repository at this point in the history
  • Loading branch information
theurich committed Sep 12, 2024
1 parent 49bd433 commit 3f654bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/addon/ESMX/Driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ foreach(ESMX_LINK_LIBRARY IN ITEMS ${ESMX_LINK_LIBRARIES})
endif()
endforeach()

# link options
if(DEFINED ESMX_LINK_OPTIONS)
target_link_options(esmx_driver PUBLIC ${ESMX_LINK_OPTIONS})
endif()

# add components
set(CMP_OPTIONS BUILD_TYPE;
SOURCE_DIR;
Expand Down
1 change: 1 addition & 0 deletions src/addon/ESMX/Driver/esmx_app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def create_appConf(appCfg: ESMXAppCfg, odir):
ESMXOpt('disable_comps', None, str),
ESMXOpt('link_paths', None, dir),
ESMXOpt('link_libraries', None, str),
ESMXOpt('link_options', None, str),
ESMXOpt('build_args', None, str),
ESMXOpt('build_jobs', None, str),
ESMXOpt('build_verbose', None, str),
Expand Down
3 changes: 2 additions & 1 deletion src/addon/ESMX/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ These options affect the ESMX application layer. If no key/value pair is provide
| `exe_name` | executable name for application | `esmx_app` |
| `disable_comps` | scalar or list of components to disable | *None* |
| `link_module_paths` | scalar or list of search paths for CMake modules | *None* |
| `link_libraries` | scalar or list of external libraries, linked to esmx | *None* |
| `link_options` | scalar or list of options used during linking of esmx | *None* |
| `link_packages` | scalar or list of cmake packages, use link_libraries to link to esmx | *None* |
| `link_paths` | scalar or list of search path for external libraries | *None* |
| `link_libraries` | scalar or list of external libraries, linked to esmx | *None* |
| `build_args` | scalar or list of arguments passed to all build_types | *None* |
| `build_jobs` | job number used for all build_types | *None* |
| `build_verbose` | verbosity setting used for all build_types | *None* |
Expand Down

0 comments on commit 3f654bc

Please sign in to comment.