Slicer: 2145-support-for-installing-extension-from-file eb9b0263

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-05-23 16:56:18 2145-support-for-installing-extension-from-file e7b28138
Changeset

COMP: Fix clang build error related to qRestAPI

Associated qRestAPI commit is commontk/qRestAPI@082dabd and
the corresponding message as been copied below:

// -------------
Fix build CLang build error by making static helper method
public.

For the record, the reason this fails on Mac and not on Linux is
the following :
http://clang-developers.42468.n3.nabble.com/Access-to-static-protected-member-from-friends-of-derived-classes-td4030444.html

The Q_DECLARE_PRIVATE macro declares the qXnatAPIPrivate class and makes
it a friend of qXnatAPI, which is sufficient for G++ to give it access to
qRestAPI's static protected methods, but the Clang developers have a
different understanding of the standard, so it doesn't work on Clang.

Thanks to Steve Pieper, Florian Vichot and Sascha Zelzer for their
help fixing the issue.
// -------------

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22032 3bd1e089-480b-0410-8dfb-8563597acbee

mod - SuperBuild/External_qRestAPI.cmake Diff File