Commit Graph

19 Commits

Author SHA1 Message Date
Transporter
876ae106bc Fix CMake for Visual Studio 2019 on Windows 10 2019-06-12 13:14:16 +02:00
Vladimir Chebotarev
0d7a1f42b2 Added MinGW Message Compiler. 2018-12-07 03:06:05 +03:00
Lyashenko Arsenii Maksimovich
36e512102e Credit for "wmain()" wrapper (#2372)
* Add credit for "wmain()" wrapper.

* Now message compiler required just for MSVC.

* Some code rearrange.
2018-08-01 10:36:54 -07:00
Lyashenko Arsenii Maksimovich
0379a1e768 MinGW support (#2360)
* Add MinGW support (not full yet).

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Fix SQLs compilation (No rule to make target '${LIBNAME}.dll.a', needed by '${LIBNAME}.dll'.  Stop.)
* Fix crypto executables compilation
* Test static compilation
* Test MSVC compilation
* Add unicode support

See pocoproject/poco#2356

* Code rearrange.

Also fix PDF test runner.

TODO list:
* Fix tests compilation (undefined reference to CppUnit::...)
* Add unicode support
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Normal "_DLL" definition for MinGW. Add missing "Crypto_API" for several implementations. Add "POCO_NO_MINGW_UNICODE" for "wmain".

TODO list:
* Check PostgreSQL and MySQL
* Resolve what to do with message compiler

See pocoproject/poco#2356

* Test PostgreSQL. Fix message compiler problem.

See pocoproject/poco#2356

* Perform requested changes. Add WinCE check.

See pocoproject/poco#2360

* Perform requested changes #2. Delete WinCE check.

See pocoproject/poco#2360

* Perform requested changes #3. Net initializer should works now.

See pocoproject/poco#2360

* Fix invalid indent.

See pocoproject/poco#2360

* Correct definition of POCO_NO_MINGW_UNICODE.

See pocoproject/poco#2360

* Remove macro and set global linke flags for testing purpose

* Add -municode for mingw where wmain is used

* Delete "POCO_ENABLE_EXE_WMAIN". Add PollSet support.

See pocoproject/poco#2360

* Restore WinCE linker flags. Set _WIN32_WINNT in PollSet.cpp separately. Add var to disable MinGW wmain wrapper.

* Fix compilation.

* Fix missing argument name in functions "setEscapeUnicode" in JSON package.
2018-06-19 08:17:03 -07:00
Joerg-Christian Boehme
8a70ab8a1c Cleanup cmake build system (develop) to use transitive dependency management from cmake (#2322)
* Cleanup cmake Root CMakeLists.txt

* Cleanup cmake targets

* Add find openssl modul for older cmake version

* set proper scope

* Switch off make based builds in travis and appveyor

* Fix build break, set C11 on c file

* Set from C11 to C99

* Fix NetSSL win build

* Set C99 compile features

* Fix Windows build

* Fix windows build

* Revert "Fix windows build"

This reverts commit 678d44216bd964f61655df809efbf63ddd8a7bfd.

* Cleanup poco unbundle definition

* Fix PDF build

* Remove unused set affinity

* Add _AFXDLL as target compile definitions

* Refactor add_definitions to target_compile_definitons in Util

* Refactor add_definitions to target_compile_definitons in XML

* Remove THREADSAFE in data sql cmake build

* Refactor add_definitions to target_compile_definition in cmake mysql

* Refactor add_definitions to target_compile_definition in cmake odbc

* Refactor add_definitions to target_compile_definition in cmake sqlite

* Refactor add_definitions to target_compile_definitions in platform specific cmake

* Add _DEBUG as compile definition

* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build

* cleanup LIB_MODE_DEFINITIONS in cmake buld system

* Fix broken merge

* Fix android foundation test

* Fix old redis build version

* Fix android fondation test

* Cleanup target link libraries.

* Update cmake documentation

* Some fixese in crypto and netssl for win and some cleanup an SQL

* Minor fix in root CMakeList.txt

* Squashed commit of the following:

commit df050b56b6d81eaf9bdb37bb016fe9a3554eba4f

    Fix build dependecies in cmake

* Squashed commit of the following:

commit f41ce2bb404e197ff04b1e64f7b66c9a2b1e03c8

    Fix PostgreSQL build

* Squashed commit of the following:

commit b7da0deed67ffff23a8b7a50d6deff1e022b2577

    Set db hostnames

* Update doc

* Update cmake build commands

* Set public on target link libraries in cmake build

* Fix broken cppunit merge
2018-06-03 11:19:00 -05:00
Timothy Brackett
43cbd82b7f Fix #1241 Rename CMAKE Variables to allow grouping (#1437)
* Add macro to map ENABLE_* variables provided on CMake command-line to POCO_ENABLE_* variables.

* Properly map ENABLE_* values to POCO_ENABLE_* variables instead of assuming ON
2018-03-26 07:13:54 +02:00
gdkessler
2bf1d97ad5 Install cmake config packages in common location on windows (#1454)
When on MS Windows, install cmake config scripts to "cmake" rather than "lib/cmake/Poco", as that will allow find_package() on an MS Windows build to find the installation if it is in a common location with other packages.
2018-03-11 22:48:22 +01:00
Karol Olszacki
44b94d0ac3 Fix making POCO for MinGW - add message compiler (#2073)
When making targets for `mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1`
MinGW needs `message compiler` (`mc.exe`) from Windows Kits, just like MSVS does;

CMake Log:
```
-- Checking for C++14 compiler - available
CMake Error at third_party/poco/cmake/PocoMacros.cmake:45 (message):
  message compiler not found: required to build
Call Stack (most recent call first):
  third_party/poco/CMakeLists.txt:77 (include)
```
2017-12-29 21:23:10 +01:00
OgreTransporter
f95d2fdfbf Add kit version 10 for message compiler (#1978) 2017-11-06 09:47:56 -06:00
Aleksandar Fabijanic
151304135e purge trailing whitespace (#1947) 2017-10-20 15:37:19 -05:00
FrancisANDRE
03423ddd04 Add SIMPLE_INSTALL macro, update FindSQL for Windows and
DefinePlatformSpecific.cmake for Cygwin.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-08 09:58:35 +01:00
Aleksandar Fabijanic
b1bcd786b0 Merge pull request #939 from siemens/mc-compiler
CMake: Add additional registry entry to find mc.exe
2015-09-16 11:08:38 -05:00
Torndeco
0859133d47 CMake Fix for non MSVC Installs
The return function is causing Data/CMakeLists.txt to exit early before they include sub directories.
i.e Data/MySQL Data/ODBC  Data/SQLite

http://www.cmake.org/cmake/help/v3.0/command/return.html
2015-06-05 03:04:08 +01:00
Philip Miller
f918793228 add macro POCO_INSTALL_PDB to install MSVC pdb files 2015-06-02 12:05:15 -04:00
Pascal Bach
e725c9d225 CMake: Add additional registry entry to find mc.exe
Fixes #805
2015-05-07 08:54:34 +02:00
Sascha Zelzer
25d3f4ccd4 Use correct locations for the generated Poco*ConfigVersion.cmake files. 2015-02-04 04:35:56 +01:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Pascal Bach
c8a96c9247 CMake: Add macro to help generate Packages from Poco 2014-10-14 17:58:46 +02:00
Pascal Bach
65fcaf65a0 cmake: Rework top level CMake file
- Allow enable/disable components
2014-08-22 17:11:03 +02:00