Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
68237068
Commit
68237068
authored
Sep 11, 2014
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `--no-compiler-check` to configure script.
With this option you can disable the compiler version check.
parent
2de0c407
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
CMakeLists.txt
CMakeLists.txt
+22
-20
configure
configure
+4
-0
No files found.
CMakeLists.txt
View file @
68237068
...
@@ -72,28 +72,30 @@ endif()
...
@@ -72,28 +72,30 @@ endif()
################################################################################
################################################################################
# check for g++ >= 4.7 or clang++ > = 3.2
# check for g++ >= 4.7 or clang++ > = 3.2
try_run
(
ProgramResult
if
(
NOT NO_COMPILER_CHECK
)
CompilationSucceeded
try_run
(
ProgramResult
${
CMAKE_BINARY_DIR
}
CompilationSucceeded
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/get_compiler_version.cpp
${
CMAKE_BINARY_DIR
}
RUN_OUTPUT_VARIABLE CompilerVersion
)
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/get_compiler_version.cpp
if
(
NOT CompilationSucceeded OR NOT ProgramResult EQUAL 0
)
RUN_OUTPUT_VARIABLE CompilerVersion
)
message
(
FATAL_ERROR
"Cannot determine compiler version"
)
if
(
NOT CompilationSucceeded OR NOT ProgramResult EQUAL 0
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"GNU"
)
message
(
FATAL_ERROR
"Cannot determine compiler version"
)
if
(
CompilerVersion VERSION_GREATER 4.6
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"GNU"
)
message
(
STATUS
"Found g++ version
${
CompilerVersion
}
"
)
if
(
CompilerVersion VERSION_GREATER 4.6
)
else
()
message
(
STATUS
"Found g++ version
${
CompilerVersion
}
"
)
message
(
FATAL_ERROR
"g++ >= 4.7 required (found:
${
CompilerVersion
}
)"
)
else
()
endif
()
message
(
FATAL_ERROR
"g++ >= 4.7 required (found:
${
CompilerVersion
}
)"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
endif
()
if
(
CompilerVersion VERSION_GREATER 3.1
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
message
(
STATUS
"Found clang++ version
${
CompilerVersion
}
"
)
if
(
CompilerVersion VERSION_GREATER 3.1
)
message
(
STATUS
"Found clang++ version
${
CompilerVersion
}
"
)
else
()
message
(
FATAL_ERROR
"clang++ >= 3.2 required (found:
${
CompilerVersion
}
)"
)
endif
()
else
()
else
()
message
(
FATAL_ERROR
"clang++ >= 3.2 required (found:
${
CompilerVersion
}
)"
)
message
(
FATAL_ERROR
"Your C++ compiler does not support C++11 "
"or is not supported"
)
endif
()
endif
()
else
()
message
(
FATAL_ERROR
"Your C++ compiler does not support C++11 "
"or is not supported"
)
endif
()
endif
()
# check if the user provided CXXFLAGS, set defaults otherwise
# check if the user provided CXXFLAGS, set defaults otherwise
if
(
CMAKE_CXX_FLAGS
)
if
(
CMAKE_CXX_FLAGS
)
...
...
configure
View file @
68237068
...
@@ -33,6 +33,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
...
@@ -33,6 +33,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--build-static build as static and shared library
--build-static build as static and shared library
--build-static-only build as static library only
--build-static-only build as static library only
--more-clang-warnings enables most of Clang's warning flags
--more-clang-warnings enables most of Clang's warning flags
--no-compiler-check disable compiler version check
Installation Directories:
Installation Directories:
--prefix=PREFIX installation directory [/usr/local]
--prefix=PREFIX installation directory [/usr/local]
...
@@ -212,6 +213,9 @@ while [ $# -ne 0 ]; do
...
@@ -212,6 +213,9 @@ while [ $# -ne 0 ]; do
--more-clang-warnings
)
--more-clang-warnings
)
append_cache_entry MORE_CLANG_WARNINGS BOOL
yes
append_cache_entry MORE_CLANG_WARNINGS BOOL
yes
;;
;;
--no-compiler-check
)
append_cache_entry NO_COMPILER_CHECK BOOL
yes
;;
--with-log-level
=
*
)
--with-log-level
=
*
)
level
=
`
echo
"
$optarg
"
|
tr
'[:lower:]'
'[:upper:]'
`
level
=
`
echo
"
$optarg
"
|
tr
'[:lower:]'
'[:upper:]'
`
case
$level
in
case
$level
in
...
...
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