diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-18 09:51:32 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-18 09:51:32 -0400 |
commit | 2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f (patch) | |
tree | 4f3c4869a427ca176abd69af801b4a04bc8b5641 /test/CMakeLists.txt | |
parent | 60fd2b234a4cf95223f58a87f413d37ff2ed5fc7 (diff) | |
download | fork-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 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 97da8b24..0f19ae6f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,7 +1,7 @@ include(ProcessorCount) ProcessorCount(PROCESSORS) -if(NOT PROCESSORS EQUAL 0) +if (NOT PROCESSORS EQUAL 0) math(EXPR JOBS "${PROCESSORS} * 2") set(CTEST_BUILD_FLAGS -j${JOBS}) endif() @@ -12,17 +12,17 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} ${CTEST_BUILD_FLAGS}) add_subdirectory(unit) -if(HAVE_BOOST_PYTHON) +if (HAVE_BOOST_PYTHON) set(TEST_PYTHON_FLAGS "--python") endif() macro(add_ledger_harness_tests _class) - if(PYTHONINTERP_FOUND) + if (PYTHONINTERP_FOUND) file(GLOB ${_class}_TESTS *.test) foreach(TestFile ${${_class}_TESTS}) get_filename_component(TestFile_Name ${TestFile} NAME_WE) string(FIND ${TestFile_Name} "_py" TestFile_IsPythonTest) - if((TestFile_IsPythonTest EQUAL -1) OR HAVE_BOOST_PYTHON) + if ((TestFile_IsPythonTest EQUAL -1) OR HAVE_BOOST_PYTHON) add_test(${_class}Test_${TestFile_Name} ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/RegressTests.py ${LEDGER_LOCATION} ${PROJECT_SOURCE_DIR} @@ -39,7 +39,7 @@ add_subdirectory(baseline) add_subdirectory(regress) # jww (2014-04-17): This is temporary until we find a fix. -#if(PYTHONINTERP_FOUND) +#if (PYTHONINTERP_FOUND) # set(_class DocTests) # file(GLOB ${_class}_TESTS ${PROJECT_SOURCE_DIR}/doc/*.texi) # foreach(TestFile ${${_class}_TESTS}) |