cmake errors

This commit is contained in:
Johannes Wendel
2019-08-12 15:51:42 +02:00
parent d428353b74
commit 5171d5e1b3

View File

@@ -89,9 +89,9 @@ if(NOT wiringPi_LIB)
message(WARNING "Could not find wiringPi library, used testing wiring pi lib instead.") message(WARNING "Could not find wiringPi library, used testing wiring pi lib instead.")
add_definitions(-DNO_WIRING_PI) add_definitions(-DNO_WIRING_PI)
else() else()
message (STATUS "Found wiring pi.") message(STATUS "Found wiring pi.")
target_link_libraries(${PROJECT_NAME} PUBLIC ${wiringPi_LIB})
endif() endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${wiringPi_LIB})
find_library(crypt_LIB crypt) find_library(crypt_LIB crypt)
if(NOT crypt_LIB) if(NOT crypt_LIB)