Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
d729fc30
Commit
d729fc30
authored
Dec 31, 2016
by
Otavio Rodolfo Piske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the library directory name for RHEL and Fedora
Signed-off-by:
Otavio Rodolfo Piske
<
opiske@redhat.com
>
parent
61e56ecc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
17 deletions
+28
-17
CMakeLists.txt
CMakeLists.txt
+16
-6
CMakeLists.txt
src/CMakeLists.txt
+5
-3
CMakeLists.txt
src/samples/CMakeLists.txt
+7
-8
No files found.
CMakeLists.txt
View file @
d729fc30
...
@@ -28,6 +28,16 @@ SET(CLIENT_VERSION ${PAHO_VERSION_MAJOR}.${PAHO_VERSION_MINOR}.${PAHO_VERSION_PA
...
@@ -28,6 +28,16 @@ SET(CLIENT_VERSION ${PAHO_VERSION_MAJOR}.${PAHO_VERSION_MINOR}.${PAHO_VERSION_PA
EXECUTE_PROCESS
(
COMMAND date -u OUTPUT_VARIABLE BUILD_TIMESTAMP
)
EXECUTE_PROCESS
(
COMMAND date -u OUTPUT_VARIABLE BUILD_TIMESTAMP
)
STRING
(
STRIP
${
BUILD_TIMESTAMP
}
BUILD_TIMESTAMP
)
STRING
(
STRIP
${
BUILD_TIMESTAMP
}
BUILD_TIMESTAMP
)
# Uses the correct directory for libraries on Red Hat-based distributions.
SET
(
PAHO_LIBRARY_DIR_NAME
"lib"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
EXISTS
"/etc/redhat-release"
)
IF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
SET
(
PAHO_LIBRARY_DIR_NAME
"lib64"
)
ENDIF
()
ENDIF
()
ENDIF
()
## build options
## build options
SET
(
PAHO_WITH_SSL FALSE CACHE BOOL
"Flag that defines whether to build ssl-enabled binaries too. "
)
SET
(
PAHO_WITH_SSL FALSE CACHE BOOL
"Flag that defines whether to build ssl-enabled binaries too. "
)
SET
(
PAHO_BUILD_DOCUMENTATION FALSE CACHE BOOL
"Create and install the HTML based API documentation (requires Doxygen)"
)
SET
(
PAHO_BUILD_DOCUMENTATION FALSE CACHE BOOL
"Create and install the HTML based API documentation (requires Doxygen)"
)
...
...
src/CMakeLists.txt
View file @
d729fc30
...
@@ -53,6 +53,8 @@ ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
...
@@ -53,6 +53,8 @@ ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
SET
(
LIBS_SYSTEM dl
)
SET
(
LIBS_SYSTEM dl
)
ENDIF
()
ENDIF
()
ADD_EXECUTABLE
(
MQTTVersion MQTTVersion.c
)
ADD_EXECUTABLE
(
MQTTVersion MQTTVersion.c
)
ADD_LIBRARY
(
paho-mqtt3c SHARED
${
common_src
}
MQTTClient.c
)
ADD_LIBRARY
(
paho-mqtt3c SHARED
${
common_src
}
MQTTClient.c
)
ADD_LIBRARY
(
paho-mqtt3a SHARED
${
common_src
}
MQTTAsync.c
)
ADD_LIBRARY
(
paho-mqtt3a SHARED
${
common_src
}
MQTTAsync.c
)
...
@@ -65,7 +67,7 @@ SET_TARGET_PROPERTIES(
...
@@ -65,7 +67,7 @@ SET_TARGET_PROPERTIES(
SOVERSION
${
PAHO_VERSION_MAJOR
}
)
SOVERSION
${
PAHO_VERSION_MAJOR
}
)
INSTALL
(
TARGETS paho-mqtt3c paho-mqtt3a MQTTVersion
INSTALL
(
TARGETS paho-mqtt3c paho-mqtt3a MQTTVersion
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION
lib
)
LIBRARY DESTINATION
${
PAHO_LIBRARY_DIR_NAME
}
)
INSTALL
(
FILES MQTTAsync.h MQTTClient.h MQTTClientPersistence.h
INSTALL
(
FILES MQTTAsync.h MQTTClient.h MQTTClientPersistence.h
DESTINATION include
)
DESTINATION include
)
...
@@ -103,8 +105,8 @@ SET(OPENSSL_LIB_SEARCH_PATH "" CACHE PATH "Directory containing OpenSSL librarie
...
@@ -103,8 +105,8 @@ SET(OPENSSL_LIB_SEARCH_PATH "" CACHE PATH "Directory containing OpenSSL librarie
SOVERSION
${
PAHO_VERSION_MAJOR
}
)
SOVERSION
${
PAHO_VERSION_MAJOR
}
)
INSTALL
(
TARGETS paho-mqtt3cs
INSTALL
(
TARGETS paho-mqtt3cs
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION
lib
)
LIBRARY DESTINATION
${
PAHO_LIBRARY_DIR_NAME
}
)
INSTALL
(
TARGETS paho-mqtt3as
INSTALL
(
TARGETS paho-mqtt3as
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION
lib
)
LIBRARY DESTINATION
${
PAHO_LIBRARY_DIR_NAME
}
)
ENDIF
()
ENDIF
()
src/samples/CMakeLists.txt
View file @
d729fc30
...
@@ -57,5 +57,4 @@ INSTALL(TARGETS paho_c_sub
...
@@ -57,5 +57,4 @@ INSTALL(TARGETS paho_c_sub
MQTTClient_publish
MQTTClient_publish
MQTTClient_publish_async
MQTTClient_publish_async
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
)
LIBRARY DESTINATION
${
PAHO_LIBRARY_DIR_NAME
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment