Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-pthread is not applicable for QNX Neutrino #245

Closed
oleh-derevenko opened this issue Jun 7, 2020 · 4 comments
Closed

-pthread is not applicable for QNX Neutrino #245

oleh-derevenko opened this issue Jun 7, 2020 · 4 comments

Comments

@oleh-derevenko
Copy link
Contributor

It would be great to edit cmake files to not generate "-pthread" in CXX_FLAGS in build/tests/CMakeFiles/test_jsoncons.dir/flags.make for QNX Neutrino target. The target does not accept (and does not require) this option.

@danielaparker
Copy link
Owner

danielaparker commented Jun 7, 2020

Would you consider submitting a pull request for this?

The flags are configured in jsoncons\build_files\cmake\Linux.cmake

@oleh-derevenko
Copy link
Contributor Author

Generally, you need to set
set(CMAKE_SYSTEM_NAME QNX)
somewhere conditionally. I'm not sure where and when exactly you do this. I'm a complete novice to cmake.

Then you can use
if(CMAKE_SYSTEM_NAME MATCHES "QNX")
to test the target.

@oleh-derevenko
Copy link
Contributor Author

Or probably you should use QNXNTO to name the system. "QNX" used to be used for QNX 4 OS release only. The releases starting from QNX 6 use "QNXNTO" as the name.

@oleh-derevenko
Copy link
Contributor Author

oleh-derevenko commented Jun 7, 2020

Alright. It looks like you need to add empty jsoncons/build_files/cmake/QNXNTO.cmake and pass -DCMAKE_SYSTEM_NAME=QNXNTO in command line

danielaparker added a commit that referenced this issue Jun 10, 2020
Adding cmake include file for QNX Neutrino platform (issue #245)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants