Guest User

Untitled

a guest
May 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. add_library(Ethernet STATIC ${eth_srcs} $<TARGET_OBJECTS:EthernetBootloader>)
  2.  
  3. Ethernet.lib(ethernet.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
  4. Ethernet.lib(ethernet.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in main.obj
  5.  
  6. set(ETHERNET_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/include")
  7. set(ETHERNET_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/lib/Ethernet.lib")
  8. string(STRIP "${ETHERNET_LIBRARIES}" ETHERNET_LIBRARIES)
  9.  
  10. set(Ethernet_DIR "C:/MotorController/public")
  11. find_package(Ethernet REQUIRED)
  12. include_directories(${ETHERNET_INCLUDE_DIR})
  13. target_link_libraries(ControlPanel ${ETHERNET_LIBRARIES})
Add Comment
Please, Sign In to add comment