summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Help: Enhance UseSWIG module documentationFeRD (Frank Dana)2022-12-221-15/+47
| | | | | | | | * Add section headings * Add TOC (HTML only) * Move `swig_link_libraries()` to "Deprecated commands" section at end of docs, document as deprecated in favor of `target_link_libraries()` in all cases.
* UseSWIG: Add support of perl5 languageMarc Chevrier2022-10-141-3/+4
|
* UseSWIG: Change the library suffix to 'dylib' for C# on macOSMario Emmenlauer2022-09-231-0/+3
| | | | | | | | | When testing on macOS, the command `swig_add_library("mytarget")` creates a library `libmytarget.so` instead of `libmytarget.dylib`. Subsequently, the library is not found by `dotnet` and the swig-generated `DllImport` statements. Fixes: #23967
* UseSWIG: track generated Perl module filesThomas Weißschuh2022-09-081-0/+1
| | | | | This makes sure the generated file is cleaned properly and allows to create dependencies on it.
* Merge topic 'UseSWIG-create-workingdir'Brad King2021-11-221-1/+1
|\ | | | | | | | | | | | | 7224eb5185 UseSWIG: ensure directory for depfile exists Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6750
| * UseSWIG: ensure directory for depfile existsMarc Chevrier2021-11-191-1/+1
| | | | | | | | | | | | | | When `Visual Studio` and `Xcode` generators are used, directory for depfile is not implicitely created by CMake when OUTFILE_DIR option is used. Fixes: #22932
* | UseSWIG: Use swig generated dependencies for Visual StudioMarc Chevrier2021-07-091-7/+18
|/
* UseSWIG: remove duplicate target includesSeth R Johnson2021-05-021-1/+1
|
* UseSWIG: use swig dependencies for Xcode generatorMarc Chevrier2021-04-231-7/+16
|
* Merge branch 'backport-UseSWIG-policies' into UseSWIG-policiesBrad King2021-04-051-0/+2
|\
| * UseSWIG: Transform swig depfile to match Ninja generator pathsBrad King2021-04-051-0/+2
| | | | | | | | | | | | | | | | | | | | Since commit 89b01b04fa (UseSWIG: use swig tool to generate dependencies, 2021-01-12, v3.20.0-rc1~120^2) we use a tool-provided depfile to extract dependencies under the Ninja generator. Enable `CMP0116` to ensure depfile paths are translated to match what the Ninja generator writes to the build manfiest. Fixes: #22029
| * UseSWIG: Run using policy settings from includerMarc Chevrier2021-04-051-15/+8
| | | | | | | | | | | | | | | | Backport commit de7f0aa6c0 (UseSWIG: avoid spurious policy warnings, 2021-02-11) to the 3.20 release branch. Projects need to be able to control policies. Issue: #22029
* | UseSWIG: Use standard library name conventions for csharp languageMarc Chevrier2021-03-261-1/+18
| | | | | | | | Fixes: #21542
* | UseSWIG: avoid spurious policy warningsMarc Chevrier2021-02-111-15/+8
|/
* UseSWIG: use swig tool to generate dependenciesMarc Chevrier2021-01-211-16/+61
| | | | | | add_custom_command() supports option DEPFILE when generator is Makefiles or Ninja. And swig tool is able to generate a dependencies file which is compatible with DEPFILE option.
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-6/+64
| | | | Issue: #19715
* UseSWIG: Add OUTPUT_DIR and OUTFILE_DIR source file propertiesMarc Chevrier2020-09-301-9/+42
| | | | | | | These properties enable to manage output directories on per source file basis. Fixes: #21250
* Merge topic 'UseSWIG-interface-option'Brad King2020-09-011-1/+9
|\ | | | | | | | | | | | | d264685bee UseSWIG: Update option -interface usage Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5172
| * UseSWIG: Update option -interface usageMarc Chevrier2020-08-311-1/+9
| | | | | | | | | | | | | | Option -interface must not be used if multiple SWIG files are part of the same library. Fixes: #21134
* | Fix typos identified using codespellJean-Christophe Fillion-Robin2020-07-221-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://github.com/codespell-project/codespell#readme The following command was used: ``` codespell -q6 --skip="\ .git,\ *.json,\ ./Copyright.txt,\ ./Help/command/foreach.rst,\ ./Help/prop_test/REQUIRED_FILES.rst,\ ./Help/variable/CTEST_COVERAGE_COMMAND.rst,\ ./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\ ./Modules/CMakeRCInformation.cmake,\ ./Modules/Internal/CPack/NSIS.template.in,\ ./Modules/FindMatlab.cmake,\ ./Modules/MatlabTestsRedirect.cmake,\ ./Modules/Platform/Windows-Clang.cmake,\ ./Modules/Platform/Windows-Intel-Fortran.cmake,\ ./Modules/Platform/Windows-MSVC.cmake,\ ./Source/CMakeVersion.cmake,\ ./Source/cmConvertMSBuildXMLToJSON.py,\ ./Source/cmCreateTestSourceList.cxx,\ ./Source/cmGlobalVisualStudio10Generator.cxx,\ ./Source/cmExportBuildFileGenerator.cxx,\ ./Source/cmExportInstallAndroidMKGenerator.cxx,\ ./Source/cmExportInstallFileGenerator.cxx,\ ./Source/cmExportSet.cxx,\ ./Source/cmExportTryCompileFileGenerator.cxx,\ ./Source/cmFindPackageCommand.cxx,\ ./Source/cmInstallCommand.cxx,\ ./Source/cmGeneratorExpressionLexer.cxx,\ ./Source/cmLocalVisualStudio7Generator.cxx,\ ./Source/cmOrderDirectories.cxx,\ ./Source/cmTarget.cxx,\ ./Source/kwsys/*,\ ./Source/QtDialog/CMakeSetupDialog.ui,\ ./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\ ./Source/CTest/cmParseCoberturaCoverage.h,\ ./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\ ./Tests/RunCMake/GoogleTest/xml_output.cpp,\ ./Tests/RunCMake/Make/TargetMessages*,\ ./Utilities/*,\ " \ -L "\ dependees,\ endwhile,\ fo,\ filetest,\ helpfull,\ nd,\ objext,\ stoll,\ supercedes,\ superceded,\ vas,\ varn,\ " ```
* UseSWIG: note dependency behavior for Make generatorsBen Boeckel2020-06-011-0/+8
| | | | See: #20067
* UseSWIG: Enable SWIG Fortran target languageSeth R Johnson2020-02-241-0/+20
|
* UseSWIG: Use ADDITIONAL_CLEAN_FILES for cleaningSebastian Holtermann2019-05-151-2/+2
| | | | | Replace use of the deprecated `ADDITIONAL_MAKE_CLEAN_FILES` directory property with the new `ADDITIONAL_CLEAN_FILES` directory property.
* UseSWIG: Manage alternate library nameMarc Chevrier2019-05-031-1/+8
| | | | | | | | Manage alternate library name by passing -interface <library_name> for python language or -dllimport <library_name> for CSharp language to the SWIG compiler. Fixes: #18771
* SWIG: Add support for custom Swig source file extensionsThirumal Venkat2019-01-031-2/+24
|
* UseSWIG: add management of SWIG option -moduleMarc Chevrier2018-12-071-0/+25
| | | | | | | When file property SWIG_MODULE_NAME is specified, provide option -module to SWIG compiler. Fixes: #18374
* Merge topic 'UseSWIG-typos'Brad King2018-10-301-2/+2
|\ | | | | | | | | | | | | | | 2fc43415ef UseSWIG: Add target language and input file in command description 20fd16e756 UseSWIG: Typo, add missing letter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2542
| * UseSWIG: Add target language and input file in command descriptionSylvain Joubert2018-10-291-1/+1
| |
| * UseSWIG: Typo, add missing letterSylvain Joubert2018-10-291-1/+1
| |
* | Merge topic 'UseSWIG-multi-input'Brad King2018-10-301-2/+9
|\ \ | | | | | | | | | | | | | | | | | | bb57cb80eb UseSWIG: multiple input files must be supported in version 2 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2539
| * | UseSWIG: multiple input files must be supported in version 2Marc Chevrier2018-10-291-2/+9
| |/ | | | | | | Fixes: #18506
| * Merge branch 'UseSWIG-php-regression' into release-3.13Brad King2018-10-081-0/+4
| |\ | | | | | | | | | Merge-request: !2448
* | | cmake_policy: Add undocumented GET_WARNING commandKyle Edwards2018-10-101-5/+2
| | | | | | | | | | | | | | | | | | | | | This command is intended for modules that issue policy warnings so they can get the warning string from CMake in a uniform manner, rather than duplicating the string. Several modules been updated to include an example of the usage of this new command.
* | | Merge topic 'UseSWIG-php-regression'Brad King2018-10-081-0/+4
|\ \ \ | |/ / |/| / | |/ | | | | | | ecd0fec40b UseSWIG: fix regression for PHP language Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2448
| * UseSWIG: fix regression for PHP languageMarc Chevrier2018-10-051-0/+4
| | | | | | | | | | | | | | Refactoring in commit v3.12.0-rc1~481^2 (UseSWIG: modernize module, 2018-01-29) accidentally regressed support for PHP. Fix it. Fixes: #18421
* | Merge topic 'UseSWIG-legacy-user-flags'Brad King2018-08-011-3/+4
|\ \ | |/ | | | | | | | | | | | | 2f88c177d0 UseSWIG: restore legacy behavior for SWIG_MODULE_<name>_EXTRA_FLAGS Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Julien Schueller <schueller@phimeca.com> Merge-request: !2245
| * UseSWIG: restore legacy behavior for SWIG_MODULE_<name>_EXTRA_FLAGSMarc Chevrier2018-07-311-3/+4
| | | | | | | | Fixes: #18226
* | UseSWIG: add policy to manage target naming strategy.Marc Chevrier2018-07-251-15/+26
| |
* | Merge topic 'UseSWIG-csharp-conditional'Brad King2018-07-191-1/+1
|\ \ | |/ | | | | | | | | | | | | | | ed289e0577 UseSWIG: Use CSharp language only if it is enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ram-Z <me@rmz.io> Acked-by: Marc Chevrier <marc.chevrier@gmail.com> Merge-request: !2219
| * UseSWIG: Use CSharp language only if it is enabledBrad King2018-07-181-1/+1
| | | | | | | | | | | | | | | | | | In commit v3.12.0-rc1~2^2 (UseSWIG: Add CSHARP variant for wrapper files, 2018-06-08) we explicitly marked swig-generated `.cs` files as `LANGUAGE` CSharp so that the resulting sources can be compiled. However, this works only when the CSharp language has been enabled. Fixes: #18184
* | Merge branch 'backport-UseSWIG-legacy-targets' into UseSWIG-legacy-targetsBrad King2018-07-031-55/+113
|\ \ | |/ | | | | Resolve conflicts by integrating changes from both sides.
| * UseSWIG: reintroduce legacy target name managementMarc Chevrier2018-07-031-53/+111
| | | | | | | | Fixes: #18140
| * Merge branch 'UseSWIG-csharp-variant' into release-3.12Brad King2018-06-131-2/+7
| |\ | | | | | | | | | Merge-request: !2137
| * \ Merge branch 'UseSWIG-fix-genex' into release-3.12Brad King2018-06-121-7/+7
| |\ \ | | | | | | | | | | | | Merge-request: !2143
* | | | UseSWIG: add support of target property INCLUDE_DIRECTORIES consumptionMarc Chevrier2018-06-131-0/+22
| | | | | | | | | | | | | | | | Fixes: #18003
* | | | Merge topic 'UseSWIG-csharp-variant'Brad King2018-06-131-2/+7
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | 0c2fb4c896 UseSWIG: Add CSHARP variant for wrapper files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2137
| * | | UseSWIG: Add CSHARP variant for wrapper filesRishi Theivendran2018-06-121-2/+7
| | | | | | | | | | | | | | | | | | | | Issue: #18065 Fixes: #18066
* | | | Merge topic 'UseSWIG-fix-genex'Brad King2018-06-131-7/+7
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | 88dd5dc9ff UseSWIG: add support for generator expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2143
| * | UseSWIG: add support for generator expressionsMarc Chevrier2018-06-121-7/+7
| |/
* | UseSWIG: Fix handling of `SWIG_MODULE_NAME` source file propertyFelix Schwitzer2018-06-121-1/+1
|/ | | | | | | | | | | | Fix a typo from commit 0bef9eb410 (UseSWIG: modernize module, 2018-01-29) that caused `UseSWIG` to ignore an eventually set property `SWIG_MODLUE_NAME`. Building multiple python modules using the mentioned property as described in the docs could lead to an invalid, or even worse, inconsistent `build.ninja` file. The reason is that the generated list of support files was not unique. For each module the support file was always named the same, namely `path/to/builddir/MODULENAME.py`.