-
Notifications
You must be signed in to change notification settings - Fork 3
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
CMake installation problems #8
Comments
Thanks for the feedback! We'll have a look, I think we'd certainly want to fix 1 and 2. As for 3, since DPC++ doesn't have it I feel like clients can no longer depend on this anyway, though I personally liked it -- it's also really simple in our case. I wouldn't be opposed to adding it, what do you think @fknorr ? |
Thanks!
|
|
Hi! Thank you for this project :)
Below are some observations I made about the current build system. Nothing is too critical, but I think it would be nice to iron such sings out eventually.
-DBUILD_SHARED_LIBS=ON
) fails with a "recompile with -fPIC" error.Full repro:
Setting
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
to force PIC globally helps.simsycl-config.cmake
containsfind_dependency
forBoost
,nlohmann_json
, andlibenvpp
. However, all those libraries are PRIVATE, and, for a static library build, there should be no need to expose them to the application trying to link tolibsimsycl.a
. This makes linking to SimSYCL more complicated.Just removing those
find_dependency
does not help, more dark CMake magic is needed?add_sycl_to_target
function to ease the integration of SYCL into the client code. How about adding something like this to theThe text was updated successfully, but these errors were encountered: