summaryrefslogtreecommitdiff
path: root/CMakeLists.txt.in
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-07-27 00:24:20 +0300
committerEd Tanous <ed.tanous@intel.com>2018-07-27 23:58:26 +0300
commitf0d73c2c400661857f5a9c70c737a84a873be4bd (patch)
tree44571b53d50279237ad846cf868541ebc079f4f0 /CMakeLists.txt.in
parent55c7b7a2e58779580f33046d2dd8649243776700 (diff)
downloadbmcweb-f0d73c2c400661857f5a9c70c737a84a873be4bd.tar.xz
cmake-format the files
cmake-format allows more consistency in our cmake files, and allows automatic reformatting of all our patches. In some cases it does make the files look worse, but overall having something that's automatic is a much improved quality of life. Change-Id: Ifd147c7d7de931cb149724aa3e36b6cb3b71436e Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'CMakeLists.txt.in')
-rw-r--r--CMakeLists.txt.in76
1 files changed, 37 insertions, 39 deletions
diff --git a/CMakeLists.txt.in b/CMakeLists.txt.in
index 627b6efe87..4399482515 100644
--- a/CMakeLists.txt.in
+++ b/CMakeLists.txt.in
@@ -5,53 +5,51 @@ include (ExternalProject)
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/prefix)
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/prefix/include)
-externalproject_add (sdbusplus GIT_REPOSITORY
- ssh://git-amr-2.devtools.intel.com:29418/openbmc-sdbusplus
- GIT_TAG ce4a3cbfe89d1a30e982899bc336029f730f394e
- SOURCE_DIR "${CMAKE_BINARY_DIR}/sdbusplus-src" BINARY_DIR
- "${CMAKE_BINARY_DIR}/sdbusplus-build" CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix
- CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND cp
- -r "${CMAKE_BINARY_DIR}/sdbusplus-src/sdbusplus"
- "${CMAKE_BINARY_DIR}/prefix/include")
+externalproject_add (
+ sdbusplus GIT_REPOSITORY
+ ssh://git-amr-2.devtools.intel.com:29418/openbmc-sdbusplus GIT_TAG
+ ce4a3cbfe89d1a30e982899bc336029f730f394e SOURCE_DIR
+ "${CMAKE_BINARY_DIR}/sdbusplus-src" BINARY_DIR
+ "${CMAKE_BINARY_DIR}/sdbusplus-build" CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix CONFIGURE_COMMAND ""
+ BUILD_COMMAND "" INSTALL_COMMAND cp -r
+ "${CMAKE_BINARY_DIR}/sdbusplus-src/sdbusplus"
+ "${CMAKE_BINARY_DIR}/prefix/include"
+)
-externalproject_add (tinyxml2 GIT_REPOSITORY
- https://github.com/leethomason/tinyxml2.git GIT_TAG
- 8c8293ba8969a46947606a93ff0cb5a083aab47a CMAKE_ARGS
- SOURCE_DIR "${CMAKE_BINARY_DIR}/tinyxml2-src" BINARY_DIR
- "${CMAKE_BINARY_DIR}/tinyxml2-build" CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix)
+externalproject_add (
+ tinyxml2 GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git GIT_TAG
+ 8c8293ba8969a46947606a93ff0cb5a083aab47a CMAKE_ARGS SOURCE_DIR
+ "${CMAKE_BINARY_DIR}/tinyxml2-src" BINARY_DIR
+ "${CMAKE_BINARY_DIR}/tinyxml2-build" CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix
+)
-externalproject_add (gtest GIT_REPOSITORY
- "https://github.com/google/googletest.git" GIT_TAG
- dfa853b63d17c787914b663b50c2095a0c5b706e CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/googletest-build
- SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src" BINARY_DIR
- "${CMAKE_BINARY_DIR}/googletest-build" CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix)
+externalproject_add (
+ gtest GIT_REPOSITORY "https://github.com/google/googletest.git" GIT_TAG
+ dfa853b63d17c787914b663b50c2095a0c5b706e CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/googletest-build SOURCE_DIR
+ "${CMAKE_BINARY_DIR}/googletest-src" BINARY_DIR
+ "${CMAKE_BINARY_DIR}/googletest-build" CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/prefix
+)
externalproject_add (
Boost URL
https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
URL_MD5 d275cd85b00022313c171f602db59fc5 SOURCE_DIR
- "${CMAKE_BINARY_DIR}/boost-src" BINARY_DIR
- "${CMAKE_BINARY_DIR}/boost-build" CONFIGURE_COMMAND "" BUILD_COMMAND ""
- INSTALL_COMMAND mkdir -p "${CMAKE_BINARY_DIR}/prefix/include/" && cp -R
+ "${CMAKE_BINARY_DIR}/boost-src" BINARY_DIR "${CMAKE_BINARY_DIR}/boost-build"
+ CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND mkdir -p
+ "${CMAKE_BINARY_DIR}/prefix/include/" && cp -R
${CMAKE_BINARY_DIR}/boost-src/boost ${CMAKE_BINARY_DIR}/prefix/include
)
-ExternalProject_Add(
- nlohmann-json
- GIT_REPOSITORY
- "https://github.com/nlohmann/json.git"
- GIT_TAG
- d2dd27dc3b8472dbaa7d66f83619b3ebcd9185fe
- SOURCE_DIR "${CMAKE_BINARY_DIR}/nlohmann-json-src"
- BINARY_DIR "${CMAKE_BINARY_DIR}/nlohmann-json-build"
- CONFIGURE_COMMAND ""
- BUILD_COMMAND ""
- INSTALL_COMMAND mkdir -p "${CMAKE_BINARY_DIR}/prefix/include/nlohmann" &&
- cp -r "${CMAKE_BINARY_DIR}/nlohmann-json-src/include/nlohmann"
- "${CMAKE_BINARY_DIR}/prefix/include"
-
+externalproject_add (
+ nlohmann-json GIT_REPOSITORY "https://github.com/nlohmann/json.git" GIT_TAG
+ d2dd27dc3b8472dbaa7d66f83619b3ebcd9185fe SOURCE_DIR
+ "${CMAKE_BINARY_DIR}/nlohmann-json-src" BINARY_DIR
+ "${CMAKE_BINARY_DIR}/nlohmann-json-build" CONFIGURE_COMMAND "" BUILD_COMMAND
+ "" INSTALL_COMMAND mkdir -p "${CMAKE_BINARY_DIR}/prefix/include/nlohmann" &&
+ cp -r "${CMAKE_BINARY_DIR}/nlohmann-json-src/include/nlohmann"
+ "${CMAKE_BINARY_DIR}/prefix/include"
)