Skip to content

Commit 91fbece

Browse files
authored
Build: update settings for gnuplot-iostream (#121)
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
1 parent 34d6a69 commit 91fbece

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

gz-waves/cmake/Add_gnuplot-iostream.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ FetchContent_Declare(
1010
)
1111

1212
FetchContent_MakeAvailable(gnuplot-iostream)
13+
14+
# The project does not set gnuplot-iostream_INCLUDE_DIRS so use
15+
# gnuplot-iostream_SOURCE_DIR instead.
16+
set(gnuplot-iostream_INCLUDE_DIRS ${gnuplot-iostream_SOURCE_DIR})

gz-waves/test/plots/CMakeLists.txt

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11

22
#============================================================================
3-
# Find dependencies
3+
# Find additional dependencies
44
#============================================================================
55

6-
#--------------------------------------
7-
# Check gnuplot-iostream is populated
8-
# message("gnuplot-iostream_POPULATED: ${gnuplot-iostream_POPULATED}")
9-
# message("gnuplot-iostream_INCLUDE_DIRS: ${gnuplot-iostream_INCLUDE_DIRS}")
10-
# message("gnuplot-iostream_SOURCE_DIR: ${gnuplot-iostream_SOURCE_DIR}")
11-
12-
#--------------------------------------
13-
# Find gnuplot-iostream
14-
#
15-
# The header is used by the examples in test/plots.
16-
# gnuplot-iostream_INCLUDE_DIRS is not set by the project so we use
17-
# gnuplot-iostream_SOURCE_DIR instead.
186
find_package(Boost COMPONENTS iostreams)
19-
set(gnuplot-iostream_INCLUDE_DIRS ${gnuplot-iostream_SOURCE_DIR})
207

218
#============================================================================
229
# Add executables

0 commit comments

Comments
 (0)