Skip to content

Commit

Permalink
STYLE: Convert CMake-language commands to lower case
Browse files Browse the repository at this point in the history
Ancient CMake versions required upper-case commands.  Later command names
became case-insensitive.  Now the preferred style is lower-case.
  • Loading branch information
hjmjohnson committed Jan 10, 2018
1 parent 81a46eb commit b2887c5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion BRAINSCommonLib/BuildScripts/CMakeBRAINS3BuildMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if(NOT StandardBRAINSBuildMacro)
# LINK_DIRECTORIES
# INCLUDE_DIRECTORIES
)
CMAKE_PARSE_ARGUMENTS(BRAINS_SEM
cmake_parse_arguments(BRAINS_SEM
"${options}"
"${oneValueArgs}"
"${multiValueArgs}"
Expand Down
2 changes: 1 addition & 1 deletion BRAINSCut/cnpy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif()
Expand Down
2 changes: 1 addition & 1 deletion CMake/ProjectSourceVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ if(_GIT_VERSION VERSION_EQUAL _${CMAKE_PROJECT_NAME}_VERSION)
else()
# The first commit after a tag should increase the project version
# number in Version.cmake and be "dev1"
MATH(EXPR _GIT_VERSION_COUNT "${_GIT_VERSION_COUNT}+1")
math(EXPR _GIT_VERSION_COUNT "${_GIT_VERSION_COUNT}+1")
set(_GIT_VERSION_DEV "${_GIT_VERSION_COUNT}")
endif()

Expand Down
4 changes: 2 additions & 2 deletions CTestConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)
## enable_testing()
## include(CTest)

set(CTEST_PROJECT_NAME "BRAINSTools")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
Expand Down
32 changes: 16 additions & 16 deletions DWIConvert/FindLIBICONV.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@
# LIBICONV_LIBRARIES - Lists of libraries when using iconv
# LIBICONV_FOUND - True if iconv found

INCLUDE(FindPackageHandleStandardArgs)
include(FindPackageHandleStandardArgs)

# Look for the header file
if(NOT LIBICONV_INCLUDE_DIR)
FIND_PATH(LIBICONV_INCLUDE_DIR NAMES iconv.h)
find_path(LIBICONV_INCLUDE_DIR NAMES iconv.h)
endif()
MARK_AS_ADVANCED(LIBICONV_INCLUDE_DIR)
mark_as_advanced(LIBICONV_INCLUDE_DIR)

# Look for the library
SET(LIBICONV_LIBS iconv)
set(LIBICONV_LIBS iconv)

if(NOT LIBICONV_LIBRARY)
FIND_LIBRARY(LIBICONV_LIBRARY NAMES ${LIBICONV_LIBS})
find_library(LIBICONV_LIBRARY NAMES ${LIBICONV_LIBS})
endif()
MARK_AS_ADVANCED(LIBICONV_LIBRARY)
mark_as_advanced(LIBICONV_LIBRARY)

FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBICONV REQUIRED_VARS LIBICONV_LIBRARY LIBICONV_INCLUDE_DIR)

# Copy the result to output variables
IF(LIBICONV_FOUND)
SET(LIBICONV_LIBRARIES ${LIBICONV_LIBRARY})
SET(LIBICONV_INCLUDE_DIRS ${LIBICONV_INCLUDE_DIR})
if(LIBICONV_FOUND)
set(LIBICONV_LIBRARIES ${LIBICONV_LIBRARY})
set(LIBICONV_INCLUDE_DIRS ${LIBICONV_INCLUDE_DIR})
include_directories(${LIBICONV_INCLUDE_DIR})
link_directories(${LIBICONV_LIBDIR})
ELSE(LIBICONV_FOUND)
SET(LIBICONV_LIBS)
SET(LIBICONV_LIBRARY)
SET(LIBICONV_LIBRARIES)
SET(LIBICONV_INCLUDE_DIR)
SET(LIBICONV_INCLUDE_DIRS)
ENDIF(LIBICONV_FOUND)
else(LIBICONV_FOUND)
set(LIBICONV_LIBS)
set(LIBICONV_LIBRARY)
set(LIBICONV_LIBRARIES)
set(LIBICONV_INCLUDE_DIR)
set(LIBICONV_INCLUDE_DIRS)
endif(LIBICONV_FOUND)

0 comments on commit b2887c5

Please sign in to comment.