wireshark/cmake/modules
João Valverde 262a84c384 Fix (and chop) static build option
This sets the scope of the static build option to Wireshark support
libraries only.

Before the patch:

Static plugins don't work with CMake and autotools.

autotools static build is broken, and most likely will always be, as
building Wireshark all-static is difficult and time-consuming.

After the patch:

For CMake Wireshark will be built with static or shared libraries and
dynamic plugins. Everything just works. CMake apparently doesn't want
you building static and shared libraries at the same time.

For autotools Wireshark will be built with shared libraries by default.
--disable-shared and --enable-static options work as usual. Dlopened
plugins are not built if --disable-shared is given to configure (to
disable shared libraries). This is a limitations imposed by libtool.

Tested on Linux. This removes broken support for building plugins
statically.

Change-Id: Ib8e8176976f136eea93a2ce8f9857b6cf9bec64c
Reviewed-on: https://code.wireshark.org/review/24241
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
2017-11-19 20:16:50 +00:00
..
COPYING-CMAKE-SCRIPTS Continue to remove $Id$ from top of file 2014-03-31 16:00:04 +00:00
CheckCCompilerFlag.cmake Revert "Another message from Clang for unknown -f and -m flags." 2015-10-14 16:53:36 +00:00
CheckCLinkerFlag.cmake cmake: fix the linker flags test for Visual Studio 2016-11-08 16:22:30 +00:00
CheckCXXCompilerFlag.cmake Duplicate CheckCCompilerFlag for CXX. 2015-07-08 07:16:01 +00:00
Dist.cmake cmake: add creation of version.conf to be shipped in tarball. 2016-11-21 09:02:11 +00:00
FindAIRPCAP.cmake CMake: Copy libwireshark dependent DLLs to the target directory. 2015-01-13 19:25:10 +00:00
FindASCIIDOC.cmake CMake: Remove an unused variable. 2017-08-14 20:28:10 +00:00
FindBCG729.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindCAP.cmake cmake: use pkg-config for resolving dependencies 2014-10-01 08:14:34 +00:00
FindCARES.cmake Require at least c-ares 1.5.0 when configuring. 2017-07-21 12:39:26 +00:00
FindChocolatey.cmake Win flex-bison and Chocolatey updates. 2014-08-07 21:54:54 +00:00
FindCygwin.cmake CMake: Don't look in WOW6432Node. 2017-08-04 05:56:46 +00:00
FindDOXYGEN.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindFOP.cmake Add missing hints. 2016-03-02 18:57:31 +00:00
FindFreetype.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindGCRYPT.cmake CMake: Move the search for libgcc_s to GLib. 2017-02-17 20:27:03 +00:00
FindGEOIP.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindGLIB2.cmake CMake: Fix error from bab9abfb7d 2017-11-19 12:20:29 +00:00
FindGMODULE2.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindGNUTLS.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindGTHREAD2.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindGTK2.cmake CMake: We no longer support Visual C++ 2005 or 2008. 2017-08-29 01:55:00 +00:00
FindGTK3.cmake cmake: fix GTK3 detection via pkg-config 2016-05-09 20:01:20 +00:00
FindHTMLHelp.cmake CMake: Detection of HTMHelp 2017-11-07 23:01:44 +00:00
FindKERBEROS.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindLEX.cmake Remove runlex.sh script, just run lex directly 2017-04-26 21:51:18 +00:00
FindLIBSSH.cmake Compile sshdump and ciscodump for Windows 2016-04-25 07:22:28 +00:00
FindLUA.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindLYNX.cmake Always use html2text.py for FAQ, improve output 2015-03-25 07:08:52 +00:00
FindLZ4.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindLibXml2.cmake cmake: FixLibXML2 include 2017-04-19 13:24:24 +00:00
FindM.cmake A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
FindMACOS_FRAMEWORKS.cmake Rename FindOS_X_FRAMEWORKS.cmake for the new OS name. 2017-06-16 08:55:57 +00:00
FindMSVC_REDIST.cmake CMake+PortableApps: Include the VC runtime (second try). 2015-12-04 22:32:32 +00:00
FindNGHTTP2.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindNL.cmake cmake: fix breakage with libnl2 2016-09-12 12:10:19 +00:00
FindNSIS.cmake Fix detection of NSIS/WiX install path when running a win64 CMake 2016-07-09 07:22:09 +00:00
FindPCAP.cmake Add hardware timestamping support 2017-08-22 07:55:26 +00:00
FindPOD.cmake FindPOD.cmake: look for pod2man.bat 2017-10-15 00:12:57 +00:00
FindPORTAUDIO.cmake Use cmake_push_check_state() and cmake_pop_check_state(). 2017-09-08 11:34:29 +00:00
FindPerl.cmake Windows: fix generation with CMake 3.9.0 2017-07-29 19:52:20 +00:00
FindPortableApps.cmake CMake: Initial PortableApps targets. 2015-04-14 19:11:50 +00:00
FindPowerShell.cmake Start moving win-setup to PowerShell. 2015-04-14 19:09:30 +00:00
FindSBC.cmake Add SBC decoding support to Windows 2016-10-22 17:35:54 +00:00
FindSETCAP.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
FindSH.cmake cmake: make Cygwin optional 2017-04-26 21:52:15 +00:00
FindSMI.cmake CMake: Copy libwireshark dependent DLLs to the target directory. 2015-01-13 19:25:10 +00:00
FindSNAPPY.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindSPANDSP.cmake CMake: Clean up Windows build 2017-11-18 20:58:31 +00:00
FindWSWinLibs.cmake Revert "More 2.4 initialization." 2017-06-05 15:03:58 +00:00
FindWiX.cmake CMake: Fix the WiX search path. 2017-06-27 17:34:22 +00:00
FindWinSparkle.cmake Update to WinSparkle 0.5.3. 2016-12-13 01:52:16 +00:00
FindWireshark.cmake Fix missing space 2014-12-17 15:29:18 +00:00
FindXSLTPROC.cmake cmake: remove dependency on sed 2017-04-26 21:50:44 +00:00
FindYACC.cmake Make Winflex\bison the preferred option 2016-09-18 09:57:06 +00:00
FindZLIB.cmake Use cmake_push_check_state() and cmake_pop_check_state(). 2017-09-08 11:34:29 +00:00
GenerateTestSh.cmake Fix the exec call and paths in the test wrapper. 2015-03-07 05:04:32 +00:00
LICENSE.txt Remove some $Id$ lines 2014-07-12 14:31:51 +00:00
LocatePythonExecutable.cmake CMake: Look for Python in more places. 2017-06-08 22:41:20 +00:00
LocatePythonModule.cmake Fix Python 3 compatibility in LocatePythonModule 2014-12-21 08:54:24 +00:00
UseABICheck.cmake cmake: fix "multiple rules generate abi-descriptor.template" warning 2015-11-23 17:22:44 +00:00
UseAsn2Wrs.cmake CMake: Find asn2wrs.py once. 2016-03-24 18:41:39 +00:00
UseCheckAPI.cmake Add checkAPI calls to CMake. 2016-05-02 12:01:24 +00:00
UseCustomIncludes.cmake Having CmakeListsCustom.txt in git defeats the purpose of its existence: 2014-09-18 07:02:00 +00:00
UseLemon.cmake Add checkAPI calls to CMake. 2016-05-02 12:01:24 +00:00
UseMakeDissectorReg.cmake Use LocatePythonModule to find make-dissector-reg.py in order to make UseMakeDissectorReg.cmake more generally (out-of-source) usable. 2014-12-18 07:42:39 +00:00
UseMakeTapReg.cmake Continue to remove $Id$ from top of file 2014-03-31 18:48:06 +00:00
UseWinLibs.cmake Qt: Warn the user about DBAR 1.8 on Windows. 2017-02-16 16:58:12 +00:00
WiresharkConfig.cmake.in Add Wireshark_LIBRARY variable 2014-12-16 16:04:55 +00:00
WiresharkConfigVersion.cmake.in Add cmake helper files for finding wireshark 2014-12-16 14:18:02 +00:00
WiresharkPlugin.cmake Fix (and chop) static build option 2017-11-19 20:16:50 +00:00
gmxTestLargeFiles.cmake Clean up some messages. 2016-06-15 00:36:34 +00:00
hhc.cmake CMake: Migrate to hhc.cmake. 2015-01-09 17:49:37 +00:00
readme.txt More SVN properties cleanup. 2013-10-27 01:11:15 +00:00

readme.txt

The following modules have been copied from CMake trunk _without_ modifications:

* FindZLIB.cmake