wireshark/cmake
Guy Harris 54e3b32027 Don't treat Visual Studio specially for linker flags.
Have CHECK_C_LINKER_FLAG pass /WX to the linker if we're using MSVC, to
force the link to fail if the linker doesn't recognize the flag.

Add flags to WIRESHARK_LD_FLAGS even with MSVC; let CHECK_C_LINKER_FLAG
figure out whether the flag should be used.

While we're at it, fix CHECK_C_LINKER_FLAG to save and restore
CMAKE_REQUIRED_LIBRARIES.

Change-Id: I7f73b4cc3a28eb14e46c2e1e9ad69f5303754f01
Reviewed-on: https://code.wireshark.org/review/13558
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-27 05:24:50 +00:00
..
modules Don't treat Visual Studio specially for linker flags. 2016-01-27 05:24:50 +00:00
TestFileOffsetBits.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
TestLargeFiles.c.cmakein Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
TestWindowsFSeek.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00