Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Amalgamated builds cause linking errors with tools. #6

Closed
thedmd opened this issue Apr 23, 2017 · 2 comments
Closed

Amalgamated builds cause linking errors with tools. #6

thedmd opened this issue Apr 23, 2017 · 2 comments

Comments

@thedmd
Copy link

thedmd commented Apr 23, 2017

Tools use CMake interface library to include some files from bgfx sources. When using amalgamated build these sources are marked as headers and therefore not complied nor linked.

This can be solved by createing cpp file in binary directory that include necessary file there.

Changing header only flag to false in tool cmake file may not work due to how cmake works.

Thanks for your work. : )

@JoshuaBrookover
Copy link
Collaborator

You're right. That's a weird case. Neat idea with the cpp file, let me think on it a bit.

@JoshuaBrookover
Copy link
Collaborator

I fixed this using the approach you suggested. Thank you!

87759f1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants