Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
b6d4e003
Commit
b6d4e003
authored
9 years ago
by
Adrien Leman
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
test matlab find
parent
b28966fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/findMatlab.cmake
+6
-6
6 additions, 6 deletions
CMake/findMatlab.cmake
with
6 additions
and
6 deletions
CMake/findMatlab.cmake
+
6
−
6
View file @
b6d4e003
...
...
@@ -23,16 +23,16 @@
###### test if executable matlab is in the path ######
#if (FAUST_USE_MEX)
if
(
UNIX
)
#
message(STATUS "MATLAB_DIR_TMP 1 = ${MATLAB_DIR_TMP}")
message
(
STATUS
"MATLAB_DIR_TMP 1 =
${
MATLAB_DIR_TMP
}
"
)
exec_program
(
"which matlab | xargs echo"
OUTPUT_VARIABLE MATLAB_DIR_TMP
)
#
message(STATUS "MATLAB_DIR_TMP 2 = ${MATLAB_DIR_TMP}")
message
(
STATUS
"MATLAB_DIR_TMP 2 =
${
MATLAB_DIR_TMP
}
"
)
exec_program
(
"readlink
${
MATLAB_DIR_TMP
}
"
OUTPUT_VARIABLE READLINK_TMP
)
#
message(STATUS "READLINK_TMP = ${READLINK_TMP}")
message
(
STATUS
"READLINK_TMP =
${
READLINK_TMP
}
"
)
if
(
${
READLINK_TMP
}
MATCHES matlab
)
set
(
MATLAB_DIR_TMP
${
READLINK_TMP
}
)
#
message(STATUS "MATLAB_DIR_TMP 3 = ${MATLAB_DIR_TMP}")
message
(
STATUS
"MATLAB_DIR_TMP 3 =
${
MATLAB_DIR_TMP
}
"
)
endif
()
#
message(STATUS "MATLAB_DIR_TMP 4 = ${MATLAB_DIR_TMP}")
message
(
STATUS
"MATLAB_DIR_TMP 4 =
${
MATLAB_DIR_TMP
}
"
)
elseif
(
WIN32
)
exec_program
(
"where matlab.exe"
OUTPUT_VARIABLE MATLAB_DIR_TMP
)
...
...
@@ -51,7 +51,7 @@ if( ${MATLAB_DIR_TMP} MATCHES "matlab")
endif
()
set
(
MATLAB_ROOT
${
MATLAB_ROOT
}
CACHE PATH
"Matlab root directory"
)
#
message(STATUS "MATLAB_DIR_TMP ${MATLAB_DIR_TMP}")
message
(
STATUS
"MATLAB_DIR_TMP
${
MATLAB_DIR_TMP
}
"
)
#message(STATUS "MATLAB_ROOT has been found : ${MATLAB_ROOT}") # example : "/usr/local/MATLAB/R2014b"
message
(
STATUS
"MATLAB_ROOT has been found :
${
MATLAB_ROOT
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment