File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ find_package(Benchmark)
2929option (ASYNC_SIMPLE_ENABLE_TESTS "Build the tests" ON )
3030option (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} ." )
3535else ()
3636 # Just for SimpleIOExecutor.h
3737 add_definitions (-DASYNC_SIMPLE_HAS_NOT_AIO)
3838endif ()
3939
40- if (${ ASYNC_SIMPLE_ENABLE_TESTS} )
40+ if (ASYNC_SIMPLE_ENABLE_TESTS)
4141 find_package (GTest)
4242endif ()
4343
@@ -117,7 +117,7 @@ set(testdeplibs)
117117list (APPEND testdeplibs ${GTEST_LIBRARIES} )
118118list (APPEND testdeplibs ${GMOCK_LIBRARIES} )
119119list (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} )
122122endif ()
123123
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ endif()
1818add_executable (benchmarking ${BENCHMARK_SRCS} )
1919target_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} )
2323endif ()
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ endif()
1414add_executable (ReadFiles ReadFiles.cpp)
1515target_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} )
1919endif ()
2020
You can’t perform that action at this time.
0 commit comments