catkin_make error: Cmake can not determine linker language for target: roboop
I am running ros melodic on ubuntu 18.04. I was running cmake_make for the workspace and it failed with the information as bellow.
CMake Error: Cannot determine link language for target "roboop".
CMake Error: CMake can not determine linker language for target: roboop
CMake Error: CMake can not determine linker language for target: Kinematics
CMake Error: Cannot determine link language for target "Kinematics".
-- Generating done
I looked into the CmakeList.txt and both roboop and Kinematics are there.
# roboop
aux_source_directory(KNI_4.3.0/lib/kinematics/roboop/source/ roboop_SOURCES)
aux_source_directory(KNI_4.3.0/lib/kinematics/roboop/newmat/ roboop_SOURCES)
include_directories(include KNI_4.3.0/lib/kinematics/roboop/newmat/)
add_library(roboop STATIC ${roboop_SOURCES})
# Kinematics
aux_source_directory(KNI_4.3.0/lib/kinematics/ Kinematics_SOURCES)
aux_source_directory(KNI_4.3.0/lib/kinematics/AnalyticalGuess/src/ Kinematics_SOURCES)
include_directories(include KNI_4.3.0/lib/kinematics/AnalyticalGuess/include/)
add_library(Kinematics SHARED ${Kinematics_SOURCES})
target_link_libraries(Kinematics roboop)
I am new to ROS and anyone could help with this problem?
This is not a ROS problem, but a CMake one.
I would suggest you post your question on a more appropriate forum.