Skip to content

Commit 9f64da7

Browse files
committed
CMake: use lowercase command names
It was inconsistent, standardize on the KitWare preferred style.
1 parent 82f6fda commit 9f64da7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ set(BUILD_MINOR "4")
77
set(BUILD_VERSION "3")
88
set(BUILD_VERSION ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_VERSION})
99

10-
SET(CLSOCKET_HEADERS
10+
set(CLSOCKET_HEADERS
1111
src/ActiveSocket.h
1212
src/Host.h
1313
src/PassiveSocket.h
1414
src/SimpleSocket.h
1515
src/StatTimer.h
1616
)
1717

18-
SET(CLSOCKET_SOURCES
18+
set(CLSOCKET_SOURCES
1919
src/SimpleSocket.cpp
2020
src/ActiveSocket.cpp
2121
src/PassiveSocket.cpp
@@ -50,17 +50,17 @@ set_target_properties(clsocket PROPERTIES VERSION ${BUILD_VERSION}
5050
SOVERSION ${BUILD_MAJOR})
5151

5252
if(UNIX)
53-
OPTION(CLSOCKET_EXAMPLES "Build the examples" OFF)
53+
option(CLSOCKET_EXAMPLES "Build the examples" OFF)
5454

5555
if(CLSOCKET_EXAMPLES)
56-
ADD_EXECUTABLE(clsocket-example examples/RecvAsync.cpp)
56+
add_executable(clsocket-example examples/RecvAsync.cpp)
5757
target_link_libraries(clsocket-example clsocket pthread)
5858
install(TARGETS clsocket-example DESTINATION bin)
5959

60-
ADD_EXECUTABLE(querydaytime-example examples/QueryDayTime.cpp)
60+
add_executable(querydaytime-example examples/QueryDayTime.cpp)
6161
target_link_libraries(querydaytime-example clsocket)
6262

63-
ADD_EXECUTABLE(echoserver-example examples/EchoServer.cpp)
63+
add_executable(echoserver-example examples/EchoServer.cpp)
6464
target_link_libraries(echoserver-example clsocket)
6565
endif()
6666
endif()

0 commit comments

Comments
 (0)