Skip to content

Dynamically Find Radex/SmartRedis Install Library Dir - #4

Merged
MattToast merged 10 commits into
mainfrom
find-include-dirs
Sep 1, 2026
Merged

Dynamically Find Radex/SmartRedis Install Library Dir#4
MattToast merged 10 commits into
mainfrom
find-include-dirs

Conversation

@MattToast

Copy link
Copy Markdown
Member

Dynamically finds the library directory for Radex and SmartRedis regardless of an operating systems preference for using lib or lib64. Should leave the build process and necessary to export environment variable unchanged from the perspective of an end user building the plugin.

Fixes #3

Create function to resolve library directory of independent of an
operating system's preference for using `lib` or `lib64` convention.
Export individual environment variables for Radex and SmartRedis include
and library directory. User should still only need to set `RADEX_DIR`
and `SMARTREDIS_DIR`, thus leaving the build process unchanged.
@MattToast MattToast self-assigned this Aug 27, 2026
@MattToast MattToast added the bug Something isn't working label Aug 27, 2026
@MattToast
MattToast requested a review from ashao August 31, 2026 17:45

@ashao ashao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of suggestions to make the find_lib_dir functin more compact and extensible to that durn MacOS .dylib.

BTW, don't worry about propagating the changes to src/openFOAM/Allwmake. That's a relic and will be deleted in my PR.

Comment thread Allwmake
Comment thread Allwmake Outdated
Comment thread Allwmake Outdated
MattToast and others added 4 commits August 31, 2026 23:11
Update the `find_lib` function to work with both MacOS dylibs and static libraries

Co-authored-by: Andrew Shao <andrew.shao@hpe.com>
Thanks Microsoft, I hate it... :(
@MattToast

Copy link
Copy Markdown
Member Author

Ahhh I keep forgetting about MacOS. Between the lib vs lib64 dirs and .so vs .dylib, it really makes you wonder why we have conventions if everyone is just going to do their own thing anyway 😂 😅

@MattToast
MattToast requested a review from ashao September 1, 2026 06:28

@ashao ashao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lemme dig down deep into our own conventions...LGTM!

@MattToast
MattToast merged commit 96be69b into main Sep 1, 2026
@MattToast
MattToast deleted the find-include-dirs branch September 1, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install Cannot Find Libraries Under lib64 Dir

2 participants