Skip to content

Commit

Permalink
Remove FASTDDS_STATIC CMake option (#489)
Browse files Browse the repository at this point in the history
* Refs #18449: remove FASTDDS_STATIC CMake option

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

* Refs #18449: apply review suggestion

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>

---------

Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com>
  • Loading branch information
JLBuenoLopez committed May 12, 2023
1 parent ad3dd09 commit 6aebeed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions docs/installation/binaries/binaries_linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ Including Fast-DDS in a CMake project
The installer deploys *CMake config* files that simplify to incorporate **Fast-DDS** to any CMake project via
the *find_package* CMake API.

By setting the CMake variable **FASTDDS_STATIC** is possible to choose the desired linkage (dynamic or static library)
in the CMake generator stage. If the variable is missing defaults to dynamic linking.
By setting the CMake variable **BUILD_SHARED_LIBS** is possible to choose the desired linkage (dynamic or static
library) in the CMake generator stage.
If the variable is missing build process will default to static linking.

For example in order to build the examples statically linked to **Fast-DDS** do:
For example in order to build the examples dynamically linked to **Fast-DDS** do:

.. code-block:: bash
$ cmake -Bbuildexample -DFASTDDS_STATIC=ON .
$ cmake -Bbuildexample -DBUILD_SHARED_LIBS=ON .
$ cmake --build buildexample --target install
.. _uninstall_bl:
Expand Down
9 changes: 5 additions & 4 deletions docs/installation/binaries/binaries_windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ Including Fast-DDS in a CMake project
The installer deploys *CMake config* files that simplify to incorporate **Fast-DDS** to any CMake project via
the *find_package* CMake API.

By setting the CMake variable **FASTDDS_STATIC** is possible to choose the desired linkage (dynamic or static library)
in the CMake generator stage. If the variable is missing defaults to dynamic linking.
By setting the CMake variable **BUILD_SHARED_LIBS** is possible to choose the desired linkage (dynamic or static
library) in the CMake generator stage.
If the variable is missing the build process will default to static linking.

For example in order to build the examples statically linked to **Fast-DDS** do:
For example in order to build the examples dynamically linked to **Fast-DDS** do:

.. code-block:: console
> cmake -Bbuildexample -DFASTDDS_STATIC=ON .
> cmake -Bbuildexample -DBUILD_SHARED_LIBS=ON .
> cmake --build buildexample --target install

0 comments on commit 6aebeed

Please sign in to comment.