Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

ANSI/Unicode and static/shared (recreated) #180

Closed
wants to merge 3 commits into from
Closed

ANSI/Unicode and static/shared (recreated) #180

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented May 26, 2016

Build all combinations of ANSI/Unicode and static/shared library versions. This is very convenient for package managers such as pacman, because in this case the libraries are pre-compiled and the user has no choice but to install what was compiled.

I believe this will help nanodbc become more widely available both in Linux and Windows (please take a look at the MINGW-packages of the MSYS2 project, where I already put your library, but had to make some of these patches).

Note that I had to up the CMake minimum required version to 3.0+, in order to allow use of the target_compile_definitions directive.

@@ -1,11 +1,9 @@
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 3.0.2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot accept this change, since Travis CI is based on Ubuntu 12.04 with CMake 2.8.7.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. That's a pity.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsogari are your other changes not compatible with CMake version 2.8.7? Your PR could be updated to revert this particular change if so.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right @lexicalunit. I just realized there is a COMPILE_DEFINITIONS property for targets in version 2.8.7, which could be used instead of target_compile_definitions (from 3.0.2). I'update the PR to reflect this change and some other fixes. Thanks!

Copy link
Author

@ghost ghost Jun 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I create a new PR, then? Or is it possible to reopen a closed one?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsogari I believe it is possible to re-open a PR after a force push updates the branch for it. I think the original PR's author has to reopen it. The reopen button is grayed out for me.

Copy link
Author

@ghost ghost Jun 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's grayed out for me too. The tooltip says "The ... branch was force-pushed or recreated". I'll have to create a new one.

@ghost ghost closed this May 26, 2016
@ghost ghost deleted the ansi-unicode-static-shared-recreated branch May 26, 2016 22:32
@ghost ghost restored the ansi-unicode-static-shared-recreated branch June 6, 2016 16:13
@ghost ghost mentioned this pull request Jun 7, 2016
@mloskot
Copy link
Contributor

mloskot commented Jul 13, 2016

FYI, We have now MinGW builds on AppVeyor (#196).
I'm going to cherry pick and copy @dsogari 's changes manually to at least make the compilation phase pass.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants