Describe the issue
getting:
CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.
I have nsync_cpp installed in system and seems like without onnxruntime_SHARED_LIB cmake flag I don't get the error, but I need shared library
Urgency
can't build shared library for onnxruntime using cmake
Target platform
Linux
Build script
cmake
-DBUILD_SHARED_LIBS=1
-Donnxruntime_ENABLE_TRAINING=FALSE
-Donnxruntime_BUILD_UNIT_TESTS=OFF
-Donnxruntime_RUN_ONNX_TESTS=OFF
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
-DFLATBUFFERS_INSTALL=ON
-DABSL_ENABLE_INSTALL=ON
-DCMAKE_INSTALL_LIBDIR=lib
-Donnxruntime_ENABLE_CPUINFO=OFF
..
make
Error / output
CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.
Visual Studio Version
No response
GCC / Compiler Version
12.3.1 20230623
Describe the issue
getting:
CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.
I have nsync_cpp installed in system and seems like without onnxruntime_SHARED_LIB cmake flag I don't get the error, but I need shared library
Urgency
can't build shared library for onnxruntime using cmake
Target platform
Linux
Build script
cmake
..
make
Error / output
CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.
Visual Studio Version
No response
GCC / Compiler Version
12.3.1 20230623