Skip to content

Build fixes for windows and separate cmake build directory#5

Open
mastersin wants to merge 5 commits intoa-a-maly:masterfrom
mastersin:master
Open

Build fixes for windows and separate cmake build directory#5
mastersin wants to merge 5 commits intoa-a-maly:masterfrom
mastersin:master

Conversation

@mastersin
Copy link
Copy Markdown

Duplicate pull request:
victor-yacovlev#2

Add fixes for build on Windows with separate cmake build directory and check for git search path. Tested on Windows10 + VS2017 + QT-5.11.1 and ALT Linux Sisyphus.

@mastersin
Copy link
Copy Markdown
Author

mastersin commented Jan 6, 2019

Rebased with latest master (2f27d04 ).

mastersin and others added 5 commits August 12, 2019 01:01
for using changed cmake build directory
There is no `sigval_t` in FreeBSD so I introduced a simple (standard)
workaround so the code will be able to be built on FreeBSD.
The problem is that when you set:
```
set(KUMIR2_CXXFLAGS "-fno-exceptions -std=c++0x -fPIC")
```
and later try to add flags with:
```
list(APPEND KUMIR2_CXXFLAGS "-stdlib=libstdc++")
```
it will be expnded into
```
-fno-exceptions -std=c++0x -fPIC;-stdlib=libstdc++
```
and this line will effectively prevent the command from compiling
files because the semicolon will designate the end of the command and
the rest of the arguments (file name to compile, for example) will
be treated like a new command.

Tested with CMake 3.12.2 on FreeBSD 11.2
Clang is unable to find type_traits in FreeBSD 11.2 so this is
an explicit inclusion of `/usr/include/c++/v1` in order to enable
Kumir2 builds on FreeBSD.
@mastersin
Copy link
Copy Markdown
Author

Add fixes for build on unix like FreeBSD.

@NexSqaud NexSqaud mentioned this pull request Apr 24, 2020
@NexSqaud
Copy link
Copy Markdown

Working on Windows 10 1903 + VS2019 + Qt 5.14.2

@mastersin
Copy link
Copy Markdown
Author

Working on Windows 10 1903 + VS2019 + Qt 5.14.2

Good news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants