Skip to content

Commit fd19648

Browse files
committed
Fix RdKafka_LIBRARY_DIR-NOTFOUND
1 parent 4a3ec91 commit fd19648

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ if (NOT CMAKE_CXX_FLAGS)
3232
endif()
3333
endif()
3434

35+
# Set default search directories for find_path, find_library, find_package, etc...
36+
if (NOT WIN32)
37+
list(APPEND CMAKE_PREFIX_PATH /usr/lib /usr/local/lib /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE})
38+
list(APPEND CMAKE_INCLUDE_PATH /usr/include /usr/local/include)
39+
endif()
40+
3541
# Set output directories
3642
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
3743
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)

0 commit comments

Comments
 (0)