diff options
Diffstat (limited to 'third-party')
| -rw-r--r-- | third-party/benchmark/src/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | third-party/unittest/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/third-party/benchmark/src/CMakeLists.txt b/third-party/benchmark/src/CMakeLists.txt index 943594b70bcd..0357dcce3f83 100644 --- a/third-party/benchmark/src/CMakeLists.txt +++ b/third-party/benchmark/src/CMakeLists.txt @@ -57,12 +57,12 @@ endif(HAVE_LIB_RT) # We need extra libraries on Windows -if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") +if("${CMAKE_SYSTEM_NAME}" MATCHES "Windows") target_link_libraries(benchmark PRIVATE shlwapi) endif() # We need extra libraries on Solaris -if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") +if("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS") target_link_libraries(benchmark PRIVATE kstat) endif() diff --git a/third-party/unittest/CMakeLists.txt b/third-party/unittest/CMakeLists.txt index b9f3593320d7..3fa885a16ea1 100644 --- a/third-party/unittest/CMakeLists.txt +++ b/third-party/unittest/CMakeLists.txt @@ -16,7 +16,7 @@ if(WIN32) endif() # Google Test requires headers which need _ALL_SOURCE to build on AIX -if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") +if (UNIX AND "${CMAKE_SYSTEM_NAME}" MATCHES "AIX") remove_definitions("-D_XOPEN_SOURCE=700") add_definitions("-D_ALL_SOURCE") endif() |
