Skip to content

Commit 502fee1

Browse files
authored
Fixes the way conditions are checked on variables so it is correct. (simdjson#780)
1 parent 4d0c7d7 commit 502fee1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/quickstart/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
1414
function(add_quickstart_test TEST_NAME SOURCE_FILE)
1515
# Second argument is C++ standard name
1616
if (MSVC)
17-
if (${ARGV2})
17+
if (ARGV2)
1818
set(QUICKSTART_FLAGS /std:${ARGV2})
1919
else()
2020
set(QUICKSTART_FLAGS /WX)
2121
endif()
2222
set(QUICKSTART_INCLUDE /I${PROJECT_SOURCE_DIR}/include /I${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/src/simdjson.cpp)
2323
else()
24-
if (${ARGV2})
24+
if (ARGV2)
2525
set(QUICKSTART_FLAGS -Werror -std=${ARGV2})
2626
else()
2727
set(QUICKSTART_FLAGS -Werror)
@@ -30,7 +30,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
3030
endif()
3131

3232
# Third argument tells whether to compile with -fno-exceptions
33-
if (${ARGV3})
33+
if (ARGV3)
3434
if (NOT MSVC)
3535
set(QUICKSTART_FLAGS ${QUICKSTART_FLAGS} -fno-exceptions)
3636
endif()

0 commit comments

Comments
 (0)