Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
bc7113b9
Commit
bc7113b9
authored
Oct 28, 2014
by
Philip Quinn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Basic check for C++11, and setup global install paths.
parent
ab7c897f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
CMakeLists.txt
CMakeLists.txt
+20
-0
No files found.
CMakeLists.txt
View file @
bc7113b9
...
...
@@ -3,4 +3,24 @@ cmake_minimum_required(VERSION 2.8)
set
(
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
include
(
CheckIncludeFileCXX
)
check_include_file_cxx
(
initializer_list HAS_CXX11
)
if
(
NOT HAS_CXX11
)
message
(
SEND_ERROR
"Requires a C++11 compiler and standard library."
)
endif
()
# Set installation paths; these can be overridden in the cache.
set
(
EXEC_INSTALL_PREFIX
"
${
CMAKE_INSTALL_PREFIX
}
"
CACHE PATH
"Base installation path for executables."
)
set
(
BIN_INSTALL_DIR
"
${
EXEC_INSTALL_PREFIX
}
/bin"
CACHE PATH
"Installation directory for binaries (default: prefix/bin)."
)
set
(
LIB_INSTALL_DIR
"
${
EXEC_INSTALL_PREFIX
}
/lib"
CACHE PATH
"Installation directory for libraries (default: prefix/lib)."
)
set
(
INCLUDE_INSTALL_DIR
"
${
EXEC_INSTALL_PREFIX
}
/include"
CACHE PATH
"Installation directory for header files (default: prefix/include)."
)
add_subdirectory
(
c++
)
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