diff options
| author | Seth R Johnson <johnsonsr@ornl.gov> | 2021-05-02 14:01:31 (GMT) |
|---|---|---|
| committer | Seth R Johnson <johnsonsr@ornl.gov> | 2021-05-02 14:05:44 (GMT) |
| commit | ff6f7b232fbe36d8cb237ca2508ca01632d9d9d2 (patch) | |
| tree | d21baab346dcf57a5841bc3133f50e31912a1a72 /Tests/RunCMake/WriteBasicConfigVersionFile | |
| parent | 4f88cb1675cf2fe50459eb4cc321a0d4b36c6c33 (diff) | |
| download | CMake-ff6f7b232fbe36d8cb237ca2508ca01632d9d9d2.zip CMake-ff6f7b232fbe36d8cb237ca2508ca01632d9d9d2.tar.gz CMake-ff6f7b232fbe36d8cb237ca2508ca01632d9d9d2.tar.bz2 | |
FindSWIG: reduce calls to SWIG exe, and clean up variables
If all SWIG cache variables (EXECUTABLE, DIR, VERSION) are set,
there should be no need to invoke the SWIG exe on a reconfigure. This
changeset reduces the number of calls to the SWIG executable, and
additonially prevents temporary `SWIG_xxx` values from propagating outside
the `find_package` call.
I also refactored the conditionals to be less nested (and thus more
predictable), including changing theh definition of SWIG_USE_FILE to
reflect that it's if and only if SWIG_FOUND is trure.
Diffstat (limited to 'Tests/RunCMake/WriteBasicConfigVersionFile')
0 files changed, 0 insertions, 0 deletions
