File tree 2 files changed +9
-3
lines changed 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,11 @@ set (CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/Install/)
111
111
# Application
112
112
################################################################################
113
113
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 ()
115
119
#
116
120
117
121
################################################################################
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ if(NOT MKOCTFILE_EXECUTABLE)
24
24
message (WARNING "Failed to find mkoctfile" )
25
25
else ()
26
26
27
+ get_filename_component (OCTAVE_PATH ${MKOCTFILE_EXECUTABLE} PATH )
28
+
27
29
foreach (srcFileName IN LISTS CPP_SOURCES)
28
30
29
31
if (NOT IS_ABSOLUTE "${srcFileName} " )
@@ -34,12 +36,12 @@ else()
34
36
35
37
set (octFileName "${CMAKE_CURRENT_BINARY_DIR} /${baseFilename} .oct" )
36
38
37
-
38
- add_custom_command (
39
+ add_custom_command (
39
40
OUTPUT "${octFileName} "
40
41
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} "
41
42
DEPENDS "${srcFileName} "
42
43
COMMENT "Generating ${octFileName} "
44
+ WORKING_DIRECTORY "${OCTAVE_PATH} "
43
45
)
44
46
45
47
list (APPEND OCTAVE_BINARY_OCT_FILES "${octFileName} " )
You can’t perform that action at this time.
0 commit comments