Skip to content

Commit 0d98603

Browse files
authored
Merge pull request #749 from olivier-stasse/master
Fix #748 building jrl-cmake documentation on Ubuntu 24.04 LTS
2 parents 2ede15d + 626ff25 commit 0d98603

11 files changed

+580
-226
lines changed

.docs/cmake.py

+489-146
Large diffs are not rendered by default.

.docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,4 @@ def setup(app):
330330
app.add_config_value("currentmode", "user", "env")
331331
app.add_directive("setmode", SetMode)
332332
app.add_directive("ifmode", IfMode)
333-
app.add_stylesheet("css/cmake.css")
333+
app.add_css_file("css/cmake.css")

.docs/pages/base.rst

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
Basics
22
******
33

4-
Setup the project
5-
=================
6-
.. cmake-module:: ../../base.cmake
4+
.. cmakemodule:: ../../base.cmake
75

8-
C++ Headers
9-
===========
10-
.. cmake-module:: ../../header.cmake
6+
.. cmakemodule:: ../../header.cmake
117

12-
Version
13-
===========
148
.. setmode:: user
159

16-
.. cmake-module:: ../../version.cmake
10+
.. cmakemodule:: ../../version.cmake
1711

18-
Set a minimal C++ standard
19-
==========================
20-
.. cmake-module:: ../../cxx-standard.cmake
12+
.. cmakemodule:: ../../cxx-standard.cmake
2113

2214
.. _minimal-working-example:
2315

@@ -29,4 +21,4 @@ Minimal working example
2921

3022
Code documentation using Doxygen
3123
================================
32-
.. cmake-module:: ../../doxygen.cmake
24+
.. cmakemodule:: ../../doxygen.cmake

.docs/pages/cmake-packages.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ appended to the end of the config script.
2424
Consuming packages
2525
==================
2626

27-
.. cmake-module:: ../../package-config.cmake
27+
.. cmakemodule:: ../../package-config.cmake
2828

2929
Minimal working example with CMake packages
3030
===========================================

.docs/pages/dependencies.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ flags. In particular, it allows to specify dependencies towards other projects b
1010

1111
.. setmode:: import
1212

13-
.. cmake-module:: ../../pkg-config.cmake
13+
.. cmakemodule:: ../../pkg-config.cmake
1414

1515
pkg-config generation
1616
=====================
1717

1818
.. setmode:: export
1919

20-
.. cmake-module:: ../../pkg-config.cmake
20+
.. cmakemodule:: ../../pkg-config.cmake
2121

2222
.. setmode:: user
2323

@@ -26,13 +26,13 @@ External dependencies
2626

2727
Eigen
2828
-----
29-
.. cmake-module:: ../../eigen.cmake
29+
.. cmakemodule:: ../../eigen.cmake
3030
Boost
3131
-----
32-
.. cmake-module:: ../../boost.cmake
32+
.. cmakemodule:: ../../boost.cmake
3333
Python
3434
------
35-
.. cmake-module:: ../../python.cmake
35+
.. cmakemodule:: ../../python.cmake
3636

3737
Advanced
3838
========
@@ -42,13 +42,13 @@ pkg-config dependencies
4242

4343
.. setmode:: import-advanced
4444

45-
.. cmake-module:: ../../pkg-config.cmake
45+
.. cmakemodule:: ../../pkg-config.cmake
4646

4747
pkg-config generation
4848
---------------------
4949

5050
.. setmode:: export-advanced
5151

52-
.. cmake-module:: ../../pkg-config.cmake
52+
.. cmakemodule:: ../../pkg-config.cmake
5353

5454
.. setmode:: user

.docs/pages/internal.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Internal commands
33

44
.. setmode:: internal
55

6-
.. cmake-module:: ../../version.cmake
7-
.. cmake-module:: ../../pkg-config.cmake
8-
.. cmake-module:: ../../header.cmake
9-
.. cmake-module:: ../../cxx-standard.cmake
6+
.. cmakemodule:: ../../version.cmake
7+
.. cmakemodule:: ../../pkg-config.cmake
8+
.. cmakemodule:: ../../header.cmake
9+
.. cmakemodule:: ../../cxx-standard.cmake
1010

1111
Doxygen related
1212
===============
13-
.. cmake-module:: ../../doxygen.cmake
13+
.. cmakemodule:: ../../doxygen.cmake

.docs/pages/other.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ Other commands
33

44
Unit-testing
55
============
6-
.. cmake-module:: ../../test.cmake
7-
.. cmake-module:: ../../gtest.cmake
6+
.. cmakemodule:: ../../test.cmake
7+
.. cmakemodule:: ../../gtest.cmake
88

99
Xacro
1010
=====
11-
.. cmake-module:: ../../xacro.cmake
11+
.. cmakemodule:: ../../xacro.cmake
1212

1313
IDL
1414
===
15-
.. cmake-module:: ../../idl.cmake
15+
.. cmakemodule:: ../../idl.cmake
1616

1717
Version script
1818
==============
1919

20-
.. cmake-module:: ../../version-script.cmake
20+
.. cmakemodule:: ../../version-script.cmake
2121

2222
Cython
2323
======
2424

25-
.. cmake-module:: ../../cython/cython.cmake
25+
.. cmakemodule:: ../../cython/cython.cmake
2626

2727
Make targets
2828
============
@@ -33,6 +33,6 @@ The following macros define targets which are added to the Makefile:
3333
- :ref:`distcheck <target-distcheck>`: checks the generated tarball;
3434
- :ref:`release <target-release>`: releases a stable version of the current package.
3535

36-
.. cmake-module:: ../../dist.cmake
37-
.. cmake-module:: ../../distcheck.cmake
38-
.. cmake-module:: ../../release.cmake
36+
.. cmakemodule:: ../../dist.cmake
37+
.. cmakemodule:: ../../distcheck.cmake
38+
.. cmakemodule:: ../../release.cmake

.docs/pages/projects.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ These macros are used in packages of the
99

1010
.. setmode:: hpp
1111

12-
.. cmake-module:: ../../hpp.cmake
12+
.. cmakemodule:: ../../hpp.cmake
1313

14-
.. cmake-module:: ../../hpp/doc.cmake
14+
.. cmakemodule:: ../../hpp/doc.cmake
1515

1616
Stack of Tasks
1717
==============

base.cmake

+20-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
# Copyright (C) 2008-2022 LAAS-CNRS, JRL AIST-CNRS, INRIA.
2-
#
3-
# This program is free software: you can redistribute it and/or modify it under
4-
# the terms of the GNU General Public License as published by the Free Software
5-
# Foundation, either version 3 of the License, or (at your option) any later
6-
# version.
7-
#
8-
# This program is distributed in the hope that it will be useful, but WITHOUT
9-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10-
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11-
# details.
12-
#
13-
# You should have received a copy of the GNU General Public License along with
14-
# this program. If not, see <http://www.gnu.org/licenses/>.
15-
16-
# ------ # README # ------ #
17-
18-
# .rst: .. ifmode:: user
1+
#.rst:
2+
# Setup the project
3+
# -----------------
194
#
205
# This section lists the variables and macros that must be defined and invoked
216
# in the right place to enable the features of this cmake modules.
@@ -139,6 +124,23 @@
139124
# ------
140125
#
141126

127+
# Copyright (C) 2008-2022 LAAS-CNRS, JRL AIST-CNRS, INRIA.
128+
#
129+
# This program is free software: you can redistribute it and/or modify it under
130+
# the terms of the GNU General Public License as published by the Free Software
131+
# Foundation, either version 3 of the License, or (at your option) any later
132+
# version.
133+
#
134+
# This program is distributed in the hope that it will be useful, but WITHOUT
135+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
136+
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
137+
# details.
138+
#
139+
# You should have received a copy of the GNU General Public License along with
140+
# this program. If not, see <http://www.gnu.org/licenses/>.
141+
142+
# ------ # README # ------ #
143+
142144
if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.10)
143145
message(
144146
FATAL_ERROR

header.cmake

+27-24
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
# Copyright (C) 2008-2024 LAAS-CNRS, JRL AIST-CNRS, INRIA.
2-
#
3-
# This program is free software: you can redistribute it and/or modify it under
4-
# the terms of the GNU General Public License as published by the Free Software
5-
# Foundation, either version 3 of the License, or (at your option) any later
6-
# version.
7-
#
8-
# This program is distributed in the hope that it will be useful, but WITHOUT
9-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10-
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11-
# details.
12-
#
13-
# You should have received a copy of the GNU General Public License along with
14-
# this program. If not, see <http://www.gnu.org/licenses/>.
15-
16-
# .rst: .. ifmode:: user
17-
#
18-
# .. variable:: ${PROJECT_NAME}_HEADERS
19-
#
20-
# List of C++ header filenames. They will be installed automatically using
21-
# :command:`HEADER_INSTALL`
22-
#
23-
24-
# .rst: .. ifmode:: internal
1+
#.rst:
2+
# C++ Headers
3+
# -----------
254
#
265
# .. command:: _SETUP_PROJECT_HEADER
276
#
@@ -57,6 +36,30 @@
5736
# issue. You should at least open a ticket or send an e-mail to notify this
5837
# behavior.
5938
#
39+
40+
# Copyright (C) 2008-2024 LAAS-CNRS, JRL AIST-CNRS, INRIA.
41+
#
42+
# This program is free software: you can redistribute it and/or modify it under
43+
# the terms of the GNU General Public License as published by the Free Software
44+
# Foundation, either version 3 of the License, or (at your option) any later
45+
# version.
46+
#
47+
# This program is distributed in the hope that it will be useful, but WITHOUT
48+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
49+
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
50+
# details.
51+
#
52+
# You should have received a copy of the GNU General Public License along with
53+
# this program. If not, see <http://www.gnu.org/licenses/>.
54+
55+
# .rst: .. ifmode:: user
56+
#
57+
# .. variable:: ${PROJECT_NAME}_HEADERS
58+
#
59+
# List of C++ header filenames. They will be installed automatically using
60+
# :command:`HEADER_INSTALL`
61+
#
62+
6063
macro(_SETUP_PROJECT_HEADER)
6164
# Install project headers.
6265
if(DEFINED PROJECT_CUSTOM_HEADER_DIR)

version.cmake

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
#.rst:
2+
# Version
3+
# -----
4+
# The version of the project is defined directly from git.
5+
# If you wish to create a release :
6+
#.. code-block:: bash
7+
#
8+
# make release VERSION=X.Y.Z
9+
#
10+
# The system then tries to create a compressed tar file.
11+
# It is then build, and install.
12+
# If this is working a signature is created.
13+
#
14+
115
# Copyright (C) 2008-2019 LAAS-CNRS, JRL AIST-CNRS, INRIA.
216
#
317
# This program is free software: you can redistribute it and/or modify it under

0 commit comments

Comments
 (0)