Skip to content

Commit

Permalink
Fix mosquitto.h header lookup during build time
Browse files Browse the repository at this point in the history
  • Loading branch information
RunsFor authored and Totktonada committed Jun 20, 2019
1 parent 2c459a1 commit 7b29a2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mqtt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_library(driver SHARED driver.c)
if( DEFINED STATIC_BUILD )
unset(CMAKE_C_FLAGS)
add_subdirectory(../third_party/mosquitto ../third_party/mosquitto/build)
include_directories(../third_party/mosquitto/lib)
if( STATIC_BUILD )
target_link_libraries(driver libmosquitto_static ${LDFLAGS_EX})
else()
Expand Down

0 comments on commit 7b29a2b

Please sign in to comment.