summaryrefslogtreecommitdiffstats
path: root/Modules/UseSWIG.cmake
Commit message (Collapse)AuthorAgeFilesLines
* UseSWIG: Issue `swig_link_libraries` deprecation warning if CMP0078 is NEWAndrej7302025-10-241-0/+4
|
* UseSWIG: Add POSTFIX managementMarc Chevrier2025-09-231-1/+30
| | | | Fixes: #27185
* Help: Add remaining intro code blocks to modulesPeter Kokot2025-08-181-3/+9
| | | | | | | This is a follow-up to add intro code blocks to all remaining utility and find modules. Fixes: #26555
* LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* Help: More syntax highlighting for literal blocksNikita Nemkin2025-01-291-2/+6
| | | | | | | | | | | | | | | Covers almost all blocks containing actual code, except: * Parsed-literal blocks can't be highlighted, including many command summaries and substitution-heavy docs like find_... commands. This is a Sphinx limitation. * Code with errors, like CMP0049, DEPLOYMENT_ADDITIONAL_FILES, DEPLOYMENT_REMOTE_DIRECTORY, @PACKAGE_INIT@ substitution in the tutorial, bracket arguments/comments in cmake-language.7 and cmake-developer.7. * FindQt4 module, which needs reformatting.
* CMP0057: Remove support for OLD behaviorBrad King2025-01-221-2/+0
|
* CMP0012: Remove support for OLD behaviorBrad King2025-01-171-2/+0
|
* Drop Visual Studio 12 2013 generatorBrad King2024-08-281-6/+4
| | | | This generator has been deprecated since CMake 3.28. Remove it.
* UseSWIG: Simplify test for Visual Studio generatorsBrad King2024-08-281-2/+2
| | | | | | Since commit 03c31b0395 (Drop Visual Studio 9 2008 generator, 2024-05-06, v3.30.0-rc1~134^2), the test does not need to be version-dependent.
* Modules: Fix CMP0159 warnings in modules when tracingJuan Ramos2024-03-291-0/+6
| | | | Closes: #25829
* UseSWIG: ensure generated CSharp source code is portable.Marc Chevrier2023-11-141-1/+1
| | | | Fixes: #25405
* Drop Visual Studio 11 2012 generatorBrad King2023-06-131-2/+2
| | | | This generator has been deprecated since CMake 3.25. Remove it.
* 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
| |