close
Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Allow CMake user to disable Symbolize functionality - #523

Merged
sergiud merged 1 commit into
google:masterfrom
edbaunton:cmake-have-symbolize
Mar 25, 2020
Merged

Allow CMake user to disable Symbolize functionality#523
sergiud merged 1 commit into
google:masterfrom
edbaunton:cmake-have-symbolize

Conversation

@edbaunton

@edbaunton edbaunton commented Feb 6, 2020

Copy link
Copy Markdown
Contributor

Currently the user has to rely on the HAVE_SYMBOLIZE detection inside
CMakeLists.txt without having any control over whether it should be used.

Add support for disabling HAVE_SYMBOLIZE at configure time so user can specify
cmake -DHAVE_SYMBOLIZE=0.

Signed-off-by: Ed Baunton ebaunton1@bloomberg.net

@edbaunton

Copy link
Copy Markdown
Contributor Author

On the platform I am testing on which doesn't have dladdr functionality, I think I am falling foul of this check which I think could simply be rewritten as:

elseif (HAVE_DLADDR)

because the CMake Documentation reports that UNIX will return True on Apple.

However I am not familiar enough to know whether that logic is like that for some hidden reason.

Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt
Currently the user has to rely on the HAVE_SYMBOLIZE detection inside
CMakeLists.txt without having any control over whether it should be used.

Add support for disabling HAVE_SYMBOLIZE at configure time so user can specify
`cmake -DHAVE_SYMBOLIZE=0`.

Signed-off-by: Ed Baunton <ebaunton1@bloomberg.net>
@edbaunton
edbaunton force-pushed the cmake-have-symbolize branch from 4be041c to eb13e4f Compare February 15, 2020 22:16
@edbaunton

Copy link
Copy Markdown
Contributor Author

Made the changes.

@edbaunton
edbaunton requested a review from sergiud March 19, 2020 22:25
@sergiud
sergiud merged commit dfc0e44 into google:master Mar 25, 2020
@sergiud sergiud added this to the 0.5 milestone Mar 30, 2021
@sergiud sergiud mentioned this pull request May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants