Closed dempo93 closed 4 years ago
Importing the target cpp-jwt::cpp-jwt by means of target_link_libraries(target PUBLIC cpp-jwt::cpp-jwt) results in a compilation error
cpp-jwt::cpp-jwt
target_link_libraries(target PUBLIC cpp-jwt::cpp-jwt)
Cannot open include file: 'jwt/jwt.hpp': No such file or directory
This can be easily avoided by modifying the following install command
install( TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
and add an INCLUDES directive
install( TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
Got confused by my own customization of the CMakeLists file. gonna close
Importing the target
cpp-jwt::cpp-jwt
by means oftarget_link_libraries(target PUBLIC cpp-jwt::cpp-jwt)
results in a compilation errorThis can be easily avoided by modifying the following install command
and add an INCLUDES directive