diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-11-13 21:53:22 -0800 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-11-14 14:10:09 -0800 |
commit | a69ab0c23a0c38e3fed3e412df36538d8959d23c (patch) | |
tree | e6669a138dad84f79c46588f43a38c69dda90246 /host/cmake/Toolchains/mingw_cross.cmake | |
parent | 4247f025020d7dd1f696dfbd3cce248957d6ace7 (diff) | |
download | uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.tar.gz uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.tar.bz2 uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.zip |
cmake: Update coding style to use lowercase commands
Also updates our coding style file.
Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.
Run the following shell code (with GNU compliant sed):
cmake --help-command-list | grep -v "cmake version" | while read c; do
echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done > convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \
'*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed
(Make sure the backslashes don't get mangled!)
Diffstat (limited to 'host/cmake/Toolchains/mingw_cross.cmake')
-rw-r--r-- | host/cmake/Toolchains/mingw_cross.cmake | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/host/cmake/Toolchains/mingw_cross.cmake b/host/cmake/Toolchains/mingw_cross.cmake index f1406ec46..264e1a597 100644 --- a/host/cmake/Toolchains/mingw_cross.cmake +++ b/host/cmake/Toolchains/mingw_cross.cmake @@ -3,10 +3,10 @@ # most likely default if none given. # -SET(CMAKE_SYSTEM_NAME Windows) +set(CMAKE_SYSTEM_NAME Windows) -IF(NOT DEFINED MINGW_PREFIX) - SET(POSSIBLE_PREFIXES +if(NOT DEFINED MINGW_PREFIX) + set(POSSIBLE_PREFIXES i586-mingw32msvc i686-pc-mingw32 x86_64-pc-mingw32 @@ -14,36 +14,36 @@ IF(NOT DEFINED MINGW_PREFIX) x86_64-w64-mingw32 ) - SET(MINGW_FOUND 0) - FOREACH(prefix ${POSSIBLE_PREFIXES}) - IF(EXISTS /usr/${prefix}) - SET(MINGW_PREFIX ${prefix}) - SET(MINGW_FOUND 1) - BREAK() - ENDIF(EXISTS /usr/${prefix}) - ENDFOREACH(prefix ${POSSIBLE_PREFIXES}) + set(MINGW_FOUND 0) + foreach(prefix ${POSSIBLE_PREFIXES}) + if(EXISTS /usr/${prefix}) + set(MINGW_PREFIX ${prefix}) + set(MINGW_FOUND 1) + break() + endif(EXISTS /usr/${prefix}) + endforeach(prefix ${POSSIBLE_PREFIXES}) - IF(NOT MINGW_FOUND) - MESSAGE(FATAL_ERROR "No MinGW type specified, but none detected in the usual locations.") - ENDIF(NOT MINGW_FOUND) -ENDIF(NOT DEFINED MINGW_PREFIX) + if(NOT MINGW_FOUND) + message(FATAL_ERROR "No MinGW type specified, but none detected in the usual locations.") + endif(NOT MINGW_FOUND) +endif(NOT DEFINED MINGW_PREFIX) -SET(MINGW_PREFIX ${MINGW_PREFIX} CACHE STRING "MinGW prefix") +set(MINGW_PREFIX ${MINGW_PREFIX} CACHE STRING "MinGW prefix") -SET(CMAKE_C_COMPILER ${MINGW_PREFIX}-gcc) -SET(CMAKE_CXX_COMPILER ${MINGW_PREFIX}-g++) -SET(CMAKE_RC_COMPILER ${MINGW_PREFIX}-windres) +set(CMAKE_C_COMPILER ${MINGW_PREFIX}-gcc) +set(CMAKE_CXX_COMPILER ${MINGW_PREFIX}-g++) +set(CMAKE_RC_COMPILER ${MINGW_PREFIX}-windres) -IF(NOT DEFINED CMAKE_FIND_ROOT_PATH) - SET(CMAKE_FIND_ROOT_PATH /usr/${MINGW_PREFIX}) -ENDIF(NOT DEFINED CMAKE_FIND_ROOT_PATH) +if(NOT DEFINED CMAKE_FIND_ROOT_PATH) + set(CMAKE_FIND_ROOT_PATH /usr/${MINGW_PREFIX}) +endif(NOT DEFINED CMAKE_FIND_ROOT_PATH) -SET(CMAKE_INCLUDE_PATH +set(CMAKE_INCLUDE_PATH ${CMAKE_FIND_ROOT_PATH}/local/include ${CMAKE_FIND_ROOT_PATH}/include ) -SET(CMAKE_LIBRARY_PATH +set(CMAKE_LIBRARY_PATH ${CMAKE_FIND_ROOT_PATH}/local/lib ${CMAKE_FIND_ROOT_PATH}/lib ) |