Open WenyinWei opened 3 years ago
I don't think that we provide or ask any target OpenMP::OpenMP_CXX_xtensor
. I see it being used here https://github.com/xtensor-stack/xtensor/blob/fe81957365ce7eb56ea417bea95476c1344d7c31/CMakeLists.txt#L83-L110 but I think that that is only for testing of xtensor.
My guess is that you are placing xtensor as a subfolder of your package, and I don't think that the CMake support was designed for it. Rather, I think that you should install xtensor
Thank you for your prompt reply on the issue. I didn't put xtensor as a subpackage yet indeed, but installed it. let me try some more commands on linking xtensor.
Hi @WenyinWei . Your reply confuses me, if you installed it (using CMake or conda) I don't see for the moment how you could be faced with OpenMP::OpenMP_CXX_xtensor
?
Yes! I am also pretty confused. How can I meet the error even after I have cmaked 'xtensor' and installed it by building INSTALL target in visual studio. Let me check once again when tomorrow I go back to my office desktop.
I made sure that I did meet the trouble with the env:
XTENSOR_USE_OPENMP
ON,As long as I wanna taget_link_libraries
with xtensor, VS would tell me the error LNK110 that it fails opening OpenMP::OpenMP_CXX_xtensor.lib
. The trouble could be avoided by XTENSOR_USE_OPENMP
OFF brute-forcedly.
@tdegeus There is another mention of OpenMP::OpenMP_CXX_xtensor
in
https://github.com/xtensor-stack/xtensor/blob/fe81957365ce7eb56ea417bea95476c1344d7c31/CMakeLists.txt#L240-L243
Should it be removed?
Hitting this as well when enabling XTENSOR to use OpenMP in v0.25. Could this be addressed @tdegeus ?
Platform: Windows xtensor: 0.23.10
Hi all, I have met some trouble when I use
xtensor
from my own code bytarget_link_libraries
, could anybody tell me how to do it in the right way? I turned onXTENSOR_USE_OPENMP
option when I cmakextensor
, it shall be linked when I cmake my library by targte_include_directory and target_link_libraries.It doesn't help for me to add
OpenMP::OpenMP_CXX_xtensor
in the lib list oftarget_link_libraries
. The same CMakeLists works fine on Ubuntu with clang 13.0.