Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-gflags
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-gflags
Commits
3624d33a
Commit
3624d33a
authored
11 years ago
by
Andreas Schuh
Browse files
Options
Downloads
Patches
Plain Diff
Set CMAKE_BUILD_TYPE to Release by default. Require CMake >=2.8.
parent
392eb67d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+26
-19
26 additions, 19 deletions
CMakeLists.txt
with
26 additions
and
19 deletions
CMakeLists.txt
+
26
−
19
View file @
3624d33a
cmake_minimum_required
(
VERSION 2.6 FATAL_ERROR
)
cmake_minimum_required
(
VERSION 2.8 FATAL_ERROR
)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# package information
# package information
...
@@ -19,23 +18,13 @@ option (BUILD_SHARED_LIBS "Request build of shared libraries." OFF)
...
@@ -19,23 +18,13 @@ option (BUILD_SHARED_LIBS "Request build of shared libraries." OFF)
set
(
GFLAGS_NAMESPACE
"gflags"
CACHE STRING
"C++ namespace identifier of gflags library."
)
set
(
GFLAGS_NAMESPACE
"gflags"
CACHE STRING
"C++ namespace identifier of gflags library."
)
mark_as_advanced
(
GFLAGS_NAMESPACE
)
mark_as_advanced
(
GFLAGS_NAMESPACE
)
# ----------------------------------------------------------------------------
if
(
NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS AND NOT CMAKE_C_FLAGS
)
# source files - excluding root subdirectory and/or .in suffix
set
(
set
(
PUBLIC_HDRS
CMAKE_BUILD_TYPE
"Release"
"gflags/gflags.h"
CACHE STRING
"Choose the type of build, options are: None (CMAKE_C_FLAGS and CMAKE_CXX_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
"gflags/gflags_declare.h"
FORCE
"gflags/gflags_completions.h"
)
)
endif
()
set
(
PRIVATE_HDRS
"config.h"
)
set
(
GFLAGS_SRCS
"gflags.cc"
"gflags_reporting.cc"
"gflags_completions.cc"
)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# system checks
# system checks
...
@@ -81,6 +70,24 @@ if (Threads_FOUND)
...
@@ -81,6 +70,24 @@ if (Threads_FOUND)
endif
()
endif
()
endif
()
endif
()
# ----------------------------------------------------------------------------
# source files - excluding root subdirectory and/or .in suffix
set
(
PUBLIC_HDRS
"gflags/gflags.h"
"gflags/gflags_declare.h"
"gflags/gflags_completions.h"
)
set
(
PRIVATE_HDRS
"config.h"
)
set
(
GFLAGS_SRCS
"gflags.cc"
"gflags_reporting.cc"
"gflags_completions.cc"
)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# configure source files
# configure source files
if
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
...
...
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