Skip to content

Commit

Permalink
CMake build fixes for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Dec 3, 2020
1 parent 2801d5c commit 6ad5f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/mosquitto_ctrl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ if (WITH_TLS AND CJSON_FOUND)
${OPENSSL_INCLUDE_DIR} ${STDBOOL_H_PATH} ${STDINT_H_PATH}
${CJSON_INCLUDE_DIRS} ${mosquitto_SOURCE_DIR}/apps/mosquitto_passwd)

link_directories(${CJSON_DIR})

add_executable(mosquitto_ctrl
mosquitto_ctrl.c mosquitto_ctrl.h
client.c
Expand Down
2 changes: 1 addition & 1 deletion client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set( CLIENT_DIR ${mosquitto_BINARY_DIR}/lib)

if (CJSON_FOUND)
add_definitions("-DWITH_CJSON")
set( CLIENT_DIR "${CLIENT_DIR} ${CJSON_DIR}" )
set( CLIENT_DIR "${CLIENT_DIR};${CJSON_DIR}" )
set( CLIENT_INC "${CLIENT_INC};${CJSON_INCLUDE_DIRS}" )
endif()

Expand Down

0 comments on commit 6ad5f19

Please sign in to comment.