Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c112c9aa
Commit
c112c9aa
authored
Sep 02, 2013
by
hbristow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made binding compilation less verbose
parent
31c95ff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
compile.cmake
modules/matlab/compile.cmake
+4
-1
No files found.
modules/matlab/compile.cmake
View file @
c112c9aa
...
...
@@ -20,6 +20,9 @@ if ("${CONFIGURATION}" MATCHES "Debug")
return
()
endif
()
# -----------------------------------------------------------------------------
# Compile
# -----------------------------------------------------------------------------
# for each generated source file:
# 1. check if the file has already been compiled
# 2. attempt compile if required
...
...
@@ -29,7 +32,6 @@ foreach(SOURCE_FILE ${SOURCE_FILES})
# strip out the filename
get_filename_component
(
FILENAME
${
SOURCE_FILE
}
NAME_WE
)
# compile the source file using mex
execute_process
(
COMMAND echo
${
FILENAME
}
)
if
(
NOT EXISTS
${
CMAKE_CURRENT_BINARY_DIR
}
/+cv/
${
FILENAME
}
.
${
MATLAB_MEXEXT
}
)
execute_process
(
COMMAND
${
MATLAB_MEX_SCRIPT
}
${
MEX_OPTS
}
"CXXFLAGS=
\$
CXXFLAGS
${
MEX_CXXFLAGS
}
"
${
MEX_INCLUDE_DIRS_LIST
}
...
...
@@ -40,6 +42,7 @@ foreach(SOURCE_FILE ${SOURCE_FILES})
)
endif
()
# TODO: If a mex file fails to compile, should we error out?
# TODO: Warnings are currently treated as errors...
if
(
FAILED
)
message
(
FATAL_ERROR
"Failed to compile
${
FILENAME
}
:
${
FAILED
}
"
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment