Open dappchandu opened 3 months ago
Hello, I do not think that this bug is related with vsomeip
I think that the error is self-explanatory, you are trying to link a library against a target which is not built
Could you please, show full detail of you CMakeLists.txt
?
I think that there is something wrong in your CMakeLists.txt
set(CMAKE_DISABLE_SOURCE_CHANGES OFF) if it is set to OFF then i'm able to install it . If it is set to ON i'm unable to install the library. I want to set it on if i'm not using the vsomeip library how can i made it .
@dappchandu could you please explain why you think this is a vsomeip issue? Thank you
vSomeip Version
3.4.10
Boost Version
1.71
Environment
Ubuntu 20.04.6
Describe the bug
cmake -S . -B "./build/debug" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/linux_native_x86_64.cmake CMake Error at CMakeLists.txt:32 (target_link_libraries): Cannot specify link libraries for target "fota_template" which is not built by this project.
-- Configuring incomplete, errors occurred! See also "/home/chandrakala/Desktop/FOTA_PROJECT_TEMPLATE/build/debug/CMakeFiles/CMakeOutput.log". make: *** [Makefile:65: all] Error 1
Reproduction Steps
After downloading vsomeip 3.4.10 , run mkdir build , cd build , cmake .. , make , sudo make install. Got the library in my system and while trying to add in the project using the set(VSOMEIP3_DIR /home/chandrakala/install_folder/lib/cmake/vsomeip3)
Find vsomeip package
find_package(vsomeip3 REQUIRED)
Your existing code here ...
target_link_libraries(fota_template vsomeip3)
Expected behaviour
No response
Logs and Screenshots
No response