Skip to content

Commit

Permalink
ldflags -> libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Nov 12, 2023
1 parent 8739ef8 commit 47a6632
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ maketest(test-arg-iter)
if(LIBLO_FOUND)
maketest(liblo)
target_include_directories(liblo PRIVATE ${LIBLO_INCLUDE_DIRS})
target_link_libraries(liblo PRIVATE ${LIBLO_LDFLAGS})
target_link_libraries(liblo PRIVATE ${LIBLO_LIBRARIES})
endif()

maketestcpp(version)
Expand All @@ -207,7 +207,7 @@ maketestcpp(path-search)
maketestcpp(performance)
if(LIBLO_FOUND)
target_include_directories(performance PRIVATE ${LIBLO_INCLUDE_DIRS})
target_link_libraries(performance PRIVATE ${LIBLO_LDFLAGS})
target_link_libraries(performance PRIVATE ${LIBLO_LIBRARIES})
target_compile_definitions(performance PRIVATE HAVE_LIBLO)
endif()

Expand All @@ -225,20 +225,20 @@ maketestcpp(test-automation)
if(LIBLO_FOUND)
add_library(lo-server test/liblo-server.cpp)
target_include_directories(lo-server PRIVATE ${LIBLO_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(lo-server PRIVATE ${LIBLO_LDFLAGS} rtosc-cpp rtosc)
target_link_libraries(lo-server PRIVATE ${LIBLO_LIBRARIES} rtosc-cpp rtosc)
set(RTOSC_TEST_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test CACHE INTERNAL "")
set(RTOSC_TEST_LIB_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "")
endif()
if(LIBLO_FOUND AND RUBY_FOUND)
add_executable(port-checker test/port-checker-main.cpp)
target_include_directories(port-checker PRIVATE ${LIBLO_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(port-checker PRIVATE lo-server rtosc-cpp rtosc ${LIBLO_LDFLAGS})
target_link_libraries(port-checker PRIVATE lo-server rtosc-cpp rtosc ${LIBLO_LIBRARIES})
add_executable(port-checker-tester test/port-checker-tester.cpp)
target_include_directories(port-checker-tester PRIVATE ${LIBLO_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(port-checker-tester PRIVATE lo-server rtosc-cpp rtosc ${LIBLO_LDFLAGS})
target_link_libraries(port-checker-tester PRIVATE lo-server rtosc-cpp rtosc ${LIBLO_LIBRARIES})
add_executable(port-checker-testapp test/port-checker-testapp.cpp)
target_include_directories(port-checker-testapp PRIVATE ${LIBLO_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(port-checker-testapp PRIVATE rtosc-cpp rtosc ${LIBLO_LDFLAGS})
target_link_libraries(port-checker-testapp PRIVATE rtosc-cpp rtosc ${LIBLO_LIBRARIES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test/test-port-checker.rb
${CMAKE_CURRENT_BINARY_DIR}/test-port-checker.rb COPYONLY)
add_test(test-port-checker test-port-checker.rb)
Expand Down

0 comments on commit 47a6632

Please sign in to comment.