Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WIP] launcherlib: Fix "different visibility" warning including GenerateExportHeader #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented May 25, 2017

This commit is an attempt to "different visibility" warning [1]. By including
"GenerateExportHeader" header, it automatically run the try_compile checking
if compiler support "visibility" flags and set option "USE_COMPILER_HIDDEN_VISIBILITY"
to ON if it makes sense.

[...]
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
[...]

…ortHeader

This commit is an attempt to "different visibility" warning [1]. By including
"GenerateExportHeader" header, it automatically run the try_compile checking
if compiler support "visibility" flags and set option "USE_COMPILER_HIDDEN_VISIBILITY"
to ON if it makes sense.

[...]
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
[...]

[1] Slicer/Slicer#727 (comment)
@jcfr jcfr force-pushed the export-header-and-include-visibility-hidden-flag branch from 618d382 to 53935a2 Compare May 25, 2017 03:44
@jcfr
Copy link
Member Author

jcfr commented May 25, 2017

Revisit this and remove CMake function ctkFunctionGetCompilerVisibilityFlags

@jcfr jcfr added the invalid label May 25, 2017
@jcfr jcfr changed the title launcherlib: Fix "different visibility" warning including GenerateExportHeader [WIP] launcherlib: Fix "different visibility" warning including GenerateExportHeader May 30, 2017
@jcfr jcfr added enhancement and removed invalid labels Jun 13, 2018
@jcfr jcfr force-pushed the master branch 5 times, most recently from 9b578a5 to e70f8b5 Compare January 27, 2022 14:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

1 participant