Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
6e066481
Commit
6e066481
authored
Aug 29, 2017
by
Roman Lebedev
Committed by
Dominic Hamon
Aug 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempting to resolve a submoduling issues... (#439)
parent
a271c36a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
16 deletions
+13
-16
CMakeLists.txt
CMakeLists.txt
+10
-13
AddCXXCompilerFlag.cmake
cmake/AddCXXCompilerFlag.cmake
+1
-1
CXXFeatureCheck.cmake
cmake/CXXFeatureCheck.cmake
+2
-2
No files found.
CMakeLists.txt
View file @
6e066481
...
@@ -135,24 +135,21 @@ else()
...
@@ -135,24 +135,21 @@ else()
endif
()
endif
()
# Coverage build type
# Coverage build type
set
(
CMAKE_CXX_FLAGS_COVERAGE
"
${
CMAKE_CXX_FLAGS_DEBUG
}
"
CACHE STRING
set
(
BENCHMARK_CXX_FLAGS_COVERAGE
"
${
CMAKE_CXX_FLAGS_DEBUG
}
"
"Flags used by the C++ compiler during coverage builds."
CACHE STRING
"Flags used by the C++ compiler during coverage builds."
FORCE
)
FORCE
)
set
(
CMAKE_EXE_LINKER_FLAGS_COVERAGE
set
(
BENCHMARK_EXE_LINKER_FLAGS_COVERAGE
"
${
CMAKE_EXE_LINKER_FLAGS_DEBUG
}
"
"
${
CMAKE_EXE_LINKER_FLAGS_DEBUG
}
"
CACHE STRING
CACHE STRING
"Flags used for linking binaries during coverage builds."
"Flags used for linking binaries during coverage builds."
FORCE
)
FORCE
)
set
(
CMAKE_SHARED_LINKER_FLAGS_COVERAGE
set
(
BENCHMARK_SHARED_LINKER_FLAGS_COVERAGE
"
${
CMAKE_SHARED_LINKER_FLAGS_DEBUG
}
"
"
${
CMAKE_SHARED_LINKER_FLAGS_DEBUG
}
"
CACHE STRING
CACHE STRING
"Flags used by the shared libraries linker during coverage builds."
"Flags used by the shared libraries linker during coverage builds."
FORCE
)
FORCE
)
mark_as_advanced
(
mark_as_advanced
(
CMAKE
_CXX_FLAGS_COVERAGE
BENCHMARK
_CXX_FLAGS_COVERAGE
CMAKE
_EXE_LINKER_FLAGS_COVERAGE
BENCHMARK
_EXE_LINKER_FLAGS_COVERAGE
CMAKE
_SHARED_LINKER_FLAGS_COVERAGE
)
BENCHMARK
_SHARED_LINKER_FLAGS_COVERAGE
)
set
(
CMAKE_BUILD_TYPE
"
${
CMAKE_BUILD_TYPE
}
"
CACHE STRING
set
(
CMAKE_BUILD_TYPE
"
${
CMAKE_BUILD_TYPE
}
"
CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage."
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage."
)
FORCE
)
add_cxx_compiler_flag
(
--coverage COVERAGE
)
add_cxx_compiler_flag
(
--coverage COVERAGE
)
endif
()
endif
()
...
...
cmake/AddCXXCompilerFlag.cmake
View file @
6e066481
...
@@ -38,7 +38,7 @@ function(add_cxx_compiler_flag FLAG)
...
@@ -38,7 +38,7 @@ function(add_cxx_compiler_flag FLAG)
if
(
ARGV1
)
if
(
ARGV1
)
string
(
TOUPPER
"_
${
VARIANT
}
"
VARIANT
)
string
(
TOUPPER
"_
${
VARIANT
}
"
VARIANT
)
endif
()
endif
()
set
(
CMAKE_CXX_FLAGS
${
VARIANT
}
"
${
CMAKE_CXX_FLAGS
${
VARIANT
}}
${
FLAG
}
"
PARENT_SCOPE
)
set
(
CMAKE_CXX_FLAGS
${
VARIANT
}
"
${
CMAKE_CXX_FLAGS
${
VARIANT
}}
${
BENCHMARK_CXX_FLAGS
${
VARIANT
}}
${
FLAG
}
"
PARENT_SCOPE
)
endif
()
endif
()
endfunction
()
endfunction
()
...
...
cmake/CXXFeatureCheck.cmake
View file @
6e066481
...
@@ -22,7 +22,7 @@ function(cxx_feature_check FILE)
...
@@ -22,7 +22,7 @@ function(cxx_feature_check FILE)
string
(
TOUPPER
${
FILE
}
VAR
)
string
(
TOUPPER
${
FILE
}
VAR
)
string
(
TOUPPER
"HAVE_
${
VAR
}
"
FEATURE
)
string
(
TOUPPER
"HAVE_
${
VAR
}
"
FEATURE
)
if
(
DEFINED HAVE_
${
VAR
}
)
if
(
DEFINED HAVE_
${
VAR
}
)
set
(
HAVE_
${
VAR
}
1
CACHE INTERNAL
"Feature test for
${
FILE
}
"
PARENT_SCOPE
)
set
(
HAVE_
${
VAR
}
1 PARENT_SCOPE
)
add_definitions
(
-DHAVE_
${
VAR
}
)
add_definitions
(
-DHAVE_
${
VAR
}
)
return
()
return
()
endif
()
endif
()
...
@@ -50,7 +50,7 @@ function(cxx_feature_check FILE)
...
@@ -50,7 +50,7 @@ function(cxx_feature_check FILE)
if
(
RUN_
${
FEATURE
}
EQUAL 0
)
if
(
RUN_
${
FEATURE
}
EQUAL 0
)
message
(
"-- Performing Test
${
FEATURE
}
-- success"
)
message
(
"-- Performing Test
${
FEATURE
}
-- success"
)
set
(
HAVE_
${
VAR
}
1
CACHE INTERNAL
"Feature test for
${
FILE
}
"
PARENT_SCOPE
)
set
(
HAVE_
${
VAR
}
1 PARENT_SCOPE
)
add_definitions
(
-DHAVE_
${
VAR
}
)
add_definitions
(
-DHAVE_
${
VAR
}
)
else
()
else
()
if
(
NOT COMPILE_
${
FEATURE
}
)
if
(
NOT COMPILE_
${
FEATURE
}
)
...
...
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