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
Show more breadcrumbs
faust group
faust
Commits
4877b215
Commit
4877b215
authored
7 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Update CDashConfScript.cmake for Windows.
parent
f80cc738
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
CDashConfScript.cmake
+9
-5
9 additions, 5 deletions
CDashConfScript.cmake
with
9 additions
and
5 deletions
CDashConfScript.cmake
+
9
−
5
View file @
4877b215
...
@@ -7,8 +7,10 @@ set(CTEST_BUILD_NAME "${CMAKE_SYSTEM}_${CMAKE_HOST_SYSTEM_PROCESSOR}")
...
@@ -7,8 +7,10 @@ set(CTEST_BUILD_NAME "${CMAKE_SYSTEM}_${CMAKE_HOST_SYSTEM_PROCESSOR}")
if
(
WIN32
)
if
(
WIN32
)
set
(
CTEST_CMAKE_GENERATOR
"MinGW Makefiles"
)
# using cmake for building so no need to set CTEST_CONFIGURE_COMMAND
set
(
CTEST_SITE
"FaustWin"
)
set
(
CTEST_SITE
"FaustWin"
)
set
(
CTEST_CMAKE_GENERATOR
"MinGW Makefiles"
)
# set above seems to be ignored
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-G 'MinGW Makefiles' -DMATIO_INC_DIR=$ENV{MATIO_INC_DIR} -DMATIO_LIB_FILE=$ENV{MATIO_LIB_FILE}"
)
elseif
(
APPLE AND UNIX
)
elseif
(
APPLE AND UNIX
)
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_SITE
"FaustMacOS"
)
set
(
CTEST_SITE
"FaustMacOS"
)
...
@@ -24,16 +26,17 @@ endif()
...
@@ -24,16 +26,17 @@ endif()
if
(
$ENV{BUILD_WRAPPER_PYTHON} MATCHES
"ON"
)
if
(
$ENV{BUILD_WRAPPER_PYTHON} MATCHES
"ON"
)
set
(
CTEST_SITE
"
${
CTEST_SITE
}
Python"
)
set
(
CTEST_SITE
"
${
CTEST_SITE
}
Python"
)
#set(BUILD_WRAPPER_PYTHON ON CACHE BOOL "" FORCE) #ignored by configure
#set(BUILD_WRAPPER_PYTHON ON CACHE BOOL "" FORCE) #ignored by configure
set
(
CONF_OPTIONS
"-DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=OFF"
)
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=OFF"
)
endif
()
endif
()
if
(
$ENV{BUILD_WRAPPER_MATLAB} MATCHES
"ON"
)
if
(
$ENV{BUILD_WRAPPER_MATLAB} MATCHES
"ON"
)
set
(
CTEST_SITE
"
${
CTEST_SITE
}
Matlab"
)
set
(
CTEST_SITE
"
${
CTEST_SITE
}
Matlab"
)
#set(BUILD_WRAPPER_MATLAB ON CACHE BOOL "" FORCE)
#set(BUILD_WRAPPER_MATLAB ON CACHE BOOL "" FORCE)
set
(
CONF_OPTIONS
"-DBUILD_WRAPPER_MATLAB=ON -DBUILD_WRAPPER_PYTHON=OFF"
)
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DBUILD_WRAPPER_MATLAB=ON -DBUILD_WRAPPER_PYTHON=OFF"
)
endif
()
endif
()
set
(
CTEST_BINARY_DIRECTORY
"build_
${
CTEST_SITE
}
"
)
set
(
CTEST_BINARY_DIRECTORY
"build_
${
CTEST_SITE
}
"
)
set
(
CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE
)
set
(
CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE
)
# https://docs.gitlab.com/ee/ci/variables/
# https://docs.gitlab.com/ee/ci/variables/
message
(
STATUS
"The git branch is:"
$ENV{CI_COMMIT_REF_NAME}
)
message
(
STATUS
"The git branch is:"
$ENV{CI_COMMIT_REF_NAME}
)
...
@@ -43,11 +46,12 @@ if($ENV{SLOW_TESTS} MATCHES "OFF")
...
@@ -43,11 +46,12 @@ if($ENV{SLOW_TESTS} MATCHES "OFF")
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DSLOW_TESTS=OFF"
)
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DSLOW_TESTS=OFF"
)
else
()
else
()
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DSLOW_TESTS=ON"
)
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DSLOW_TESTS=ON"
)
#TODO: nightly mode ?
endif
()
endif
()
if
(
UNIX
)
if
(
UNIX
)
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DCMAKE_INSTALL_PREFIX=$ENV{HOME}"
)
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DCMAKE_INSTALL_PREFIX=$ENV{HOME}"
)
else
()
#WIN32
set
(
CONF_OPTIONS
"
${
CONF_OPTIONS
}
-DCMAKE_INSTALL_PREFIX=C:/Users/$ENV{USERNAME}"
)
endif
()
endif
()
#ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) # no need to empty build dir. because
#ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) # no need to empty build dir. because
...
...
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