remove '-MD' in ADD_DEFINITIONS command. why add the -MD?
this -MD forcible control MSVC generate code with /MD option
if user want to compile with /MT by set option -DCMAKE_USER_MAKE_RULES_OVERRIDE=compiler_flag_overrides.cmake in command line,
the '-MD' definition cause it not work;
Without the control file, dpkg-shlibdeps won't recognize this package.
Depending packages created by library user would end up without
dependency on libpaho-mqtt.
Signed-off-by: Stanislav Ravas <ravas@tind.sk>
This reverts commit 23d68e8c79. Indeed,
GenerateExportHeader has been removed with commit
db5a2c216b and ENABLE_LANGUAGE(CXX) will
raise the following build failure if no C++ compiler is found:
CMake Error at CMakeLists.txt:34 (ENABLE_LANGUAGE):
The CMAKE_CXX_COMPILER:
/home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Fixes:
- http://autobuild.buildroot.org/results/831ecc34b51ee2be82a3c25f5ec94f0dd2103655
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* develop: (32 commits)
Updates the RPM packaging makefile
Stop mosquitto at end of Travis build
Reduce keepalive check interval for low keepalive values #156
Added RPM spec for Paho C
Add REVERSED bitfield definition for big endian processors #212
Some cppcheck complaint fixes#36
Some CMake cleanup & correction #223
Remove const from eyecatchers #168
Fix for issue #244
Make fix for issue #186 work on Windows too
Fix for issue #186
Actual fix for issue #179
Fix for issue #179
Update README to refer to Github for bug raising
Reduce log verbosity for test 2d
Fix for issue #190
Non-SSL version of the library report an error if the caller requests an SSL connection. Possible soluiton for Issue #251
Compile static ssl libraries with OPENSSL=1.
Extend the 'MQTTAsync_willOptions_initializer' to initialize the new binary payloads fields
In test5 - 2d the client must not have the valid client certificate!
...