Skip to content

Commit c4e5d9e

Browse files
author
Magne Sjaastad
committed
Do not include Octave plugin for Windows 64-bit, as no precompiled Octave 64-bit is available.
p4#: 18838
1 parent 738d6cc commit c4e5d9e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ set (CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/Install/)
111111
# Application
112112
################################################################################
113113
add_subdirectory(ApplicationCode)
114-
add_subdirectory(OctavePlugin)
114+
115+
# Do not build Octave plugins for Windows 64-bit, as there is no precompiled 64-bit Octave available
116+
if (NOT CMAKE_CL_64)
117+
add_subdirectory(OctavePlugin)
118+
endif()
115119
#
116120

117121
################################################################################

OctavePlugin/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if(NOT MKOCTFILE_EXECUTABLE)
2424
message(WARNING "Failed to find mkoctfile")
2525
else()
2626

27+
get_filename_component(OCTAVE_PATH ${MKOCTFILE_EXECUTABLE} PATH)
28+
2729
foreach(srcFileName IN LISTS CPP_SOURCES)
2830

2931
if(NOT IS_ABSOLUTE "${srcFileName}")
@@ -34,12 +36,12 @@ else()
3436

3537
set(octFileName "${CMAKE_CURRENT_BINARY_DIR}/${baseFilename}.oct")
3638

37-
38-
add_custom_command(
39+
add_custom_command(
3940
OUTPUT "${octFileName}"
4041
COMMAND ${MKOCTFILE_EXECUTABLE} -I${QT_QTNETWORK_INCLUDE_DIR} -I${QT_QTCORE_INCLUDE_DIR} -I${QT_INCLUDE_DIR} ${RPATH_COMMAND} -L${QT_LIBRARY_DIR} -lQtCore${QT_LIBRARY_POSTFIX} -lQtNetwork${QT_LIBRARY_POSTFIX} -o "${octFileName}" "${srcFileName}"
4142
DEPENDS "${srcFileName}"
4243
COMMENT "Generating ${octFileName}"
44+
WORKING_DIRECTORY "${OCTAVE_PATH}"
4345
)
4446

4547
list(APPEND OCTAVE_BINARY_OCT_FILES "${octFileName}")

0 commit comments

Comments
 (0)