Skip to content

Commit 3a9f33b

Browse files
committed
use variable direcly instead of deferencing
1 parent 6b19b9c commit 3a9f33b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ find_package(Benchmark)
2929
option(ASYNC_SIMPLE_ENABLE_TESTS "Build the tests" ON)
3030
option(ASYNC_SIMPLE_DISABLE_AIO "Don't build SimpleIOExecutor with AIO" OFF)
3131

32-
if(NOT ${ASYNC_SIMPLE_DISABLE_AIO} AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
32+
if(NOT ASYNC_SIMPLE_DISABLE_AIO AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
3333
message(STATUS "aio found")
3434
message(STATUS "aio: ${LIBAIO_INCLUDE_DIR}, ${LIBAIO_LIBRARIES}.")
3535
else()
3636
# Just for SimpleIOExecutor.h
3737
add_definitions(-DASYNC_SIMPLE_HAS_NOT_AIO)
3838
endif()
3939

40-
if (${ASYNC_SIMPLE_ENABLE_TESTS})
40+
if (ASYNC_SIMPLE_ENABLE_TESTS)
4141
find_package(GTest)
4242
endif()
4343

@@ -117,7 +117,7 @@ set(testdeplibs)
117117
list(APPEND testdeplibs ${GTEST_LIBRARIES})
118118
list(APPEND testdeplibs ${GMOCK_LIBRARIES})
119119
list(APPEND testdeplibs ${CMAKE_THREAD_LIBS_INIT})
120-
if(NOT ${ASYNC_SIMPLE_DISABLE_AIO} AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
120+
if(NOT ASYNC_SIMPLE_DISABLE_AIO AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
121121
list(APPEND testdeplibs ${LIBAIO_LIBRARIES})
122122
endif()
123123

async_simple/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/async_simple-config.cmake"
103103
DESTINATION share/async_simple)
104104

105105

106-
if (${ASYNC_SIMPLE_ENABLE_TESTS})
106+
if (ASYNC_SIMPLE_ENABLE_TESTS)
107107
add_subdirectory(test)
108108
add_subdirectory(util/test)
109109
add_subdirectory(coro/test)

benchmarks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ endif()
1818
add_executable(benchmarking ${BENCHMARK_SRCS})
1919
target_link_libraries(benchmarking ${BENCHMARK_LIBRARIES} async_simple)
2020

21-
if(NOT ${ASYNC_SIMPLE_DISABLE_AIO} AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
21+
if(NOT ASYNC_SIMPLE_DISABLE_AIO AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
2222
target_link_libraries(benchmarking ${LIBAIO_LIBRARIES})
2323
endif()

demo_example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ endif()
1414
add_executable(ReadFiles ReadFiles.cpp)
1515
target_link_libraries(ReadFiles async_simple)
1616

17-
if(NOT ${ASYNC_SIMPLE_DISABLE_AIO} AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
17+
if(NOT ASYNC_SIMPLE_DISABLE_AIO AND LIBAIO_INCLUDE_DIR AND LIBAIO_LIBRARIES)
1818
target_link_libraries(ReadFiles ${LIBAIO_LIBRARIES})
1919
endif()
2020

0 commit comments

Comments
 (0)