summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-05-18 09:51:32 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-05-18 09:51:32 -0400
commit2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f (patch)
tree4f3c4869a427ca176abd69af801b4a04bc8b5641 /CMakeLists.txt
parent60fd2b234a4cf95223f58a87f413d37ff2ed5fc7 (diff)
downloadfork-ledger-2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f.tar.gz
fork-ledger-2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f.tar.bz2
fork-ledger-2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f.zip
Cosmetic change - format code consistently
Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt40
1 files changed, 20 insertions, 20 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9dd9f666..a22a6047 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@ option(BUILD_DOCS "Build and install documentation" OFF)
option(BUILD_WEB_DOCS "Build version of documentation suitable for viewing online" OFF)
option(BUILD_EMACSLISP "Build and install ledger-mode for Emacs" OFF)
-if(BUILD_DEBUG)
+if (BUILD_DEBUG)
set(CMAKE_BUILD_TYPE Debug)
set(DEBUG_MODE 1)
else()
@@ -32,13 +32,13 @@ else()
set(DEBUG_MODE 0)
endif()
-if(DISABLE_ASSERTS)
+if (DISABLE_ASSERTS)
set(NO_ASSERTS 1)
else()
set(NO_ASSERTS 0)
endif()
-if(CLANG_GCOV)
+if (CLANG_GCOV)
set(PROFILE_LIBS profile_rt)
set(CMAKE_REQUIRED_LIBRARIES ${PROFILE_LIBS})
endif()
@@ -47,14 +47,14 @@ endif()
find_package(PythonInterp) # Used for running tests
-if(USE_PYTHON)
- if(NOT BUILD_LIBRARY)
+if (USE_PYTHON)
+ if (NOT BUILD_LIBRARY)
message(ERROR "Building the python module requires BUILD_LIBRARY=ON.")
endif()
set(Python_ADDITIONAL_VERSIONS 2.7 2.6)
find_package(PythonLibs)
- if(PYTHONLIBS_FOUND)
+ if (PYTHONLIBS_FOUND)
set(BOOST_PYTHON python)
set(HAVE_BOOST_PYTHON 1)
include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})
@@ -120,7 +120,7 @@ int main() {
return 0;
}" UNIX_PIPES_COMPILES)
-if(UNIX_PIPES_COMPILES)
+if (UNIX_PIPES_COMPILES)
set(HAVE_UNIX_PIPES 1)
else()
set(HAVE_UNIX_PIPES 0)
@@ -142,7 +142,7 @@ int main() {
return u32regex_search(text, r) ? 0 : 1;
}" BOOST_REGEX_UNICODE_RUNS)
-if(BOOST_REGEX_UNICODE_RUNS)
+if (BOOST_REGEX_UNICODE_RUNS)
set(HAVE_BOOST_REGEX_UNICODE 1)
else()
set(HAVE_BOOST_REGEX_UNICODE 0)
@@ -155,13 +155,13 @@ cmake_pop_check_state()
include_directories(${CMAKE_INCLUDE_PATH})
macro(find_opt_library_and_header _header_var _header _lib_var _lib _have_var)
- if(${_have_var})
+ if (${_have_var})
find_path(${_header_var} ${_header})
- if(NOT ${_header_var})
+ if (NOT ${_header_var})
set(${_have_var} 0)
else()
find_library(${_lib_var} ${_lib})
- if(NOT ${_lib_var})
+ if (NOT ${_lib_var})
set(${_have_var} 0)
else()
include_directories(SYSTEM "${${_header_var}}")
@@ -175,12 +175,12 @@ endmacro(find_opt_library_and_header _header_var _header _lib_var _lib _have_var
macro(find_req_library_and_header _header_var _header _lib_var _lib)
find_path(${_header_var} ${_header})
- if(NOT ${_header_var})
+ if (NOT ${_header_var})
message(SEND_ERROR "Could not find ${_header} on your system")
else()
include_directories(SYSTEM "${${_header_var}}")
find_library(${_lib_var} ${_lib})
- if(NOT ${_lib_var})
+ if (NOT ${_lib_var})
message(SEND_ERROR "Could not find library ${_lib} on your system")
endif()
endif()
@@ -194,7 +194,7 @@ find_opt_library_and_header(EDIT_PATH histedit.h EDIT_LIB edit HAVE_EDIT)
#find_package(Gettext) # Used for running tests
-#if(GETTEXT_FOUND)
+#if (GETTEXT_FOUND)
# set(HAVE_GETTEXT 1)
#else()
set(HAVE_GETTEXT 0)
@@ -209,18 +209,18 @@ find_opt_library_and_header(EDIT_PATH histedit.h EDIT_LIB edit HAVE_EDIT)
macro(add_ledger_library_dependencies _target)
target_link_libraries(${_target} ${MPFR_LIB})
target_link_libraries(${_target} ${GMP_LIB})
- if(HAVE_EDIT)
+ if (HAVE_EDIT)
target_link_libraries(${_target} ${EDIT_LIB})
endif()
- if(HAVE_GETTEXT)
+ if (HAVE_GETTEXT)
target_link_libraries(${_target} ${INTL_LIB})
endif()
- if(HAVE_BOOST_PYTHON)
+ if (HAVE_BOOST_PYTHON)
target_link_libraries(${_target} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
else()
target_link_libraries(${_target} ${Boost_LIBRARIES})
endif()
- if(HAVE_BOOST_REGEX_UNICODE)
+ if (HAVE_BOOST_REGEX_UNICODE)
target_link_libraries(${_target} icuuc)
endif()
target_link_libraries(${_target} ${PROFILE_LIBS})
@@ -241,7 +241,7 @@ configure_file(
${PROJECT_SOURCE_DIR}/src/system.hh.in
${PROJECT_BINARY_DIR}/system.hh)
-if(CMAKE_CXX_COMPILER MATCHES "clang")
+if (CMAKE_CXX_COMPILER MATCHES "clang")
set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
elseif(CMAKE_CXX_COMPILER MATCHES "g\\+\\+")
set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
@@ -249,7 +249,7 @@ endif()
add_subdirectory(src)
add_subdirectory(doc)
-if(BUILD_EMACSLISP)
+if (BUILD_EMACSLISP)
add_subdirectory(lisp)
endif()
add_subdirectory(test)