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/lib/usrp/e300 | |
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/lib/usrp/e300')
-rw-r--r-- | host/lib/usrp/e300/CMakeLists.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/host/lib/usrp/e300/CMakeLists.txt b/host/lib/usrp/e300/CMakeLists.txt index 9e85a6bb4..2b4e3105d 100644 --- a/host/lib/usrp/e300/CMakeLists.txt +++ b/host/lib/usrp/e300/CMakeLists.txt @@ -14,8 +14,8 @@ ######################################################################## find_package(UDev) -IF(ENABLE_E300) - LIST(APPEND E300_SOURCES +if(ENABLE_E300) + list(APPEND E300_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/e300_impl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/e300_io_impl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/e300_fifo_config.cpp @@ -31,21 +31,21 @@ IF(ENABLE_E300) ${CMAKE_CURRENT_SOURCE_DIR}/e3xx_radio_ctrl_impl.cpp ) LIBUHD_APPEND_SOURCES(${E300_SOURCES}) - IF(UDEV_FOUND AND NOT E300_FORCE_NETWORK) - INCLUDE_DIRECTORIES(${UDEV_INCLUDE_DIR}) + if(UDEV_FOUND AND NOT E300_FORCE_NETWORK) + include_directories(${UDEV_INCLUDE_DIR}) LIBUHD_APPEND_LIBS(${UDEV_LIBS}) - SET_SOURCE_FILES_PROPERTIES( + set_source_files_properties( ${E300_SOURCES} PROPERTIES COMPILE_DEFINITIONS "E300_NATIVE=1" ) - ENDIF(UDEV_FOUND AND NOT E300_FORCE_NETWORK) + endif(UDEV_FOUND AND NOT E300_FORCE_NETWORK) - IF(ENABLE_GPSD) - SET_SOURCE_FILES_PROPERTIES( + if(ENABLE_GPSD) + set_source_files_properties( ${CMAKE_CURRENT_SOURCE_DIR}/e300_impl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/e300_impl.hpp ${CMAKE_CURRENT_SOURCE_DIR}/e3xx_radio_ctrl_impl.hpp PROPERTIES COMPILE_DEFINITIONS "E300_GPSD=1" ) - ENDIF(ENABLE_GPSD) -ENDIF(ENABLE_E300) + endif(ENABLE_GPSD) +endif(ENABLE_E300) |