diff --git a/cmake/01-core.cmake b/cmake/01-core.cmake index a3775317..07ecdd62 100644 --- a/cmake/01-core.cmake +++ b/cmake/01-core.cmake @@ -34,9 +34,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic-errors") if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") # Need dprintf() for FreeBSD 11.1 and older set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_WITH_DPRINTF") - # libinotify uses c99 extension, so suppress this error set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c99-extensions") + # Ensures that libraries from dependencies in LOCALBASE are used + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib") endif() if(${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)