[cmake-developers] On-going UseSWIG troubles with the official versions --SOLVED
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Wed Apr 26 04:14:30 EDT 2017
On 2017-04-25 08:54-0400 Brad King wrote:
> On 04/25/2017 04:08 AM, Alan W. Irwin wrote:
>> set PREFIX to "" for all languages not specifically covered by the if
>> and elseif blocks.
>
> Do you mean
>
> ```
> diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
> index 277f4ca28a..bfe1a6f754 100644
> --- a/Modules/UseSWIG.cmake
> +++ b/Modules/UseSWIG.cmake
> @@ -326,6 +326,9 @@ macro(SWIG_ADD_LIBRARY name)
> if (APPLE)
> set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".bundle")
> endif ()
> + else()
> + # assume empty prefix because we expect the module to be dynamically loaded
> + set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
> endif ()
> endmacro()
> ```
>
> ?
Yes, exactly.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the cmake-developers
mailing list