cmake: Add MinGW DLL Prefix Workaround
authorJoseph Ates <joseph.ates@msasafety.com>
Sat, 23 Jan 2016 11:53:29 +0000 (06:53 -0500)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 10 Feb 2016 12:26:45 +0000 (13:26 +0100)
commit044a1a11f891c1264281992f1a2121fb0856218c
treea7cf3628f78c79fed16d99a4d57528b43ae87b79
parentc35d3edecac0b5e5884f9e26ba9cf73753279ea3
cmake: Add MinGW DLL Prefix Workaround

CMake assigns "lib" as the prefix to shared libraries on MinGW
GCC, but MinGW does not expect such a prefix when linking to
DLLs. By setting, CMAKE_SHARED_LIBRARY_PREFIX to "" the
example tests were able to run with the exception of the
calculator_test which segfaults (SIGSEGV) on the setjmp in
test_divide_by_zero. This fault is specific to MinGW and does not
occur within runs on Cygwin or Visual Studio.

calculator_test was enabled only for static linking on MinGW

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
CMakeLists.txt
example/CMakeLists.txt
example/chef_wrap/CMakeLists.txt