[
https://issues.apache.org/jira/browse/IGNITE-13078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128654#comment-17128654
]
Ivan Daschinskiy edited comment on IGNITE-13078 at 6/9/20, 6:53 AM:
--------------------------------------------------------------------
[~isapego]
Current autotools build system builds odbc driver linking dynamically to other
ignite libs. I use same approach. I only change examples build, linking against
installed libraries. This is more logical, because this resembles actual user
experience.
I think that for win32 it's ok link statically for odbc driver. So I suggest
leave unix linking as is and change linking for win32.
By the way, why for win32 you suggest static linking for boost? It is common
for windows?
And why set {{Boost_USE_MULTITHREADED}} to {{ON}} explicitly? It is {{ON}} by
default, AFAIK.
By the way, CPack (part of CMake) has built-in support to WiX, so we can add
generation of odbc driver package in build process.
was (Author: ivandasch):
[~isapego]
Current autotools build system builds odbc driver linking dynamically to other
ignite libs. I use same approach. I only change examples build, linking against
installed libraries. This is more logical, because this resembles actual user
experience.
I think that for win32 it's ok link statically for odbc driver. So I suggest
leave unix linking as is and change linking for win32.
By the way, why for win32 you suggest static linking for boost? It is common
for windows?
And why set {{Boost_USE_MULTITHREADED}} to {{ON}} explicitly? It is {{ON}} by
default, AFAIK.
> С++: Add CMake build support
> ----------------------------
>
> Key: IGNITE-13078
> URL: https://issues.apache.org/jira/browse/IGNITE-13078
> Project: Ignite
> Issue Type: Improvement
> Components: platforms
> Reporter: Ivan Daschinskiy
> Assignee: Ivan Daschinskiy
> Priority: Major
> Fix For: 2.9
>
> Attachments: ignite-13078-dynamic-odbc.patch,
> ignite-13078-static-odbc.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently, it is hard to build Ignite.C++. Different build processes for
> windows and Linux, lack of building support on Mac OS X (a quite popular OS
> among developers), absolutely not IDE support, except windows and only Visual
> Studio is supported.
> I’d suggest migrating to the CMake build system. It is very popular among
> open source projects, and in The Apache Software Foundation too. Notable
> users: Apache Mesos, Apache Zookeeper (C client offers CMake as an
> alternative to autoconf and the only option on Windows), Apache Kafka
> (librdkafka - C/C++ client), Apache Thrift. Popular column-oriented database
> ClickHouse also uses CMake.
> CMake is widely supported in many IDE’s on various platforms, notably Visual
> Studio, CLion, Xcode, QtCreator, KDevelop.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)