Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenMesh
OpenMesh
Commits
b8460a7a
Commit
b8460a7a
authored
Nov 11, 2015
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Builds with c++11 on mac
parent
4f0f4a9c
Pipeline
#14
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
.gitlab-ci.yml
.gitlab-ci.yml
+7
-2
CI/ci-mac.sh
CI/ci-mac.sh
+14
-2
No files found.
.gitlab-ci.yml
View file @
b8460a7a
...
...
@@ -18,7 +18,12 @@ clang-c++98:
tags
:
-
Linux
macos
:
script
:
"
CI/ci-mac.sh"
macos-c++11
:
script
:
"
CI/ci-mac.sh
C++11"
tags
:
-
Apple
macos-c++98
:
script
:
"
CI/ci-mac.sh
C++98"
tags
:
-
Apple
CI/ci-mac.sh
View file @
b8460a7a
#!/bin/bash
LANGUAGE
=
$1
PATH
=
$PATH
:/opt/local/bin
export
PATH
OPTIONS
=
""
if
[
"
$LANGUAGE
"
==
"C++98"
]
;
then
echo
"Building with C++98"
;
elif
[
"
$LANGUAGE
"
==
"C++11"
]
;
then
echo
"Building with C++11"
;
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_FLAGS='-std=c++11' "
fi
#########################################
# Build release version
#########################################
...
...
@@ -13,7 +25,7 @@ fi
cd
build-release
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE ../
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
#build it
make
...
...
@@ -44,7 +56,7 @@ fi
cd
build-debug
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE ../
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE
$OPTIONS
../
#build the unit tests
make unittests
...
...
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