summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-11 13:06:38 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-11 13:06:38 (GMT)
commit633b3145c0e4d918f53272dab3358867bc252b0b (patch)
tree7d172aa61cf97098527f0a6acc29d9c70a25f94d /Modules
parent9e309cd4f0266144f269cab9006b51c252e25380 (diff)
parent6725975bd8c47c7817a286ada9eadb9b0fbf324c (diff)
downloadCMake-633b3145c0e4d918f53272dab3358867bc252b0b.zip
CMake-633b3145c0e4d918f53272dab3358867bc252b0b.tar.gz
CMake-633b3145c0e4d918f53272dab3358867bc252b0b.tar.bz2
Merge branch 'FindOctave-interp-target' into release-3.14
Merge-request: !2931
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOctave.cmake14
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/FindOctave.cmake b/Modules/FindOctave.cmake
index 8ae6a47..8110ff1 100644
--- a/Modules/FindOctave.cmake
+++ b/Modules/FindOctave.cmake
@@ -15,7 +15,10 @@ This module defines the following :prop_tgt:`IMPORTED` targets:
``Octave::Interpreter``
Octave interpreter (the main program)
``Octave::Octave``
- include directories and libraries
+ include directories and the octave library
+``Octave::Octinterp``
+ include directories and the octinterp library including the dependency on
+ Octave::Octave
If no ``COMPONENTS`` are specified, ``Interpreter`` is assumed.
@@ -144,6 +147,15 @@ if(Octave_Development_FOUND)
)
endif()
+ if(NOT TARGET Octave::Octinterp)
+ add_library(Octave::Octinterp UNKNOWN IMPORTED)
+ set_target_properties(Octave::Octinterp PROPERTIES
+ IMPORTED_LOCATION ${Octave_INTERP_LIBRARY}
+ INTERFACE_INCLUDE_DIRECTORIES ${Octave_INCLUDE_DIR})
+ target_link_libraries(Octave::Octinterp INTERFACE
+ Octave::Octave)
+ endif()
+
endif()