Mentions légales du service

Skip to content
Snippets Groups Projects
Commit af622671 authored by testcdash Nicolas Bellot's avatar testcdash Nicolas Bellot Committed by hhakim
Browse files

bug windows ok

parent 72802832
Branches
Tags
No related merge requests found
......@@ -45,6 +45,10 @@ if(UNIX)
#message(STATUS "MATLAB_DIR_TMP 4 = ${MATLAB_DIR_TMP}")
elseif(WIN32)
message(STATUS "INFO- If you want to choose an other version of Matlab,")
message(STATUS "INFO- please add an environment variable MATLAB_EXE_DIR. ")
message(STATUS "INFO- Example : MATLAB_EXE_DIR=F:\\ProgramFile\\MATLAB\\R2002b\\bin\\matlab.exe ")
exec_program("${CMAKE_SOURCE_DIR}/CMake/find_matlab_path.bat" ${PROJECT_BINARY_DIR})
FILE(READ "${PROJECT_BINARY_DIR}/tmp/tmpPathMatlab.txt" contents)
#STRING(REGEX REPLACE "\n" "" contents "${contents}")
......@@ -68,9 +72,6 @@ elseif(WIN32)
#set(MATLAB_EXE_DIR_TMP2 "${contents2}")
message(STATUS "MATLAB_EXE_DIR=${MATLAB_EXE_DIR_TMP}")
#message(STATUS "MATLAB_EXE_DIR_TMP2=${MATLAB_EXE_DIR_TMP2}")
message(STATUS "If you want to choose an other version of Matlab,")
message(STATUS "please add an environment variable MATLAB_EXE_DIR. ")
message(STATUS "Example : MATLAB_EXE_DIR=F:\ProgramFile\MATLAB\R2002b\bin\matlab.exe ")
if ($ENV{MATLAB_EXE_DIR}} MATCHES matlab)
set(MATLAB_DIR_TMP $ENV{MATLAB_EXE_DIR})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment