simdjson/cmake
myd7349 cc042c9936
CMAKE_VS_PLATFORM_TOOLSET might be empty (#1009)
According to https://gitlab.kitware.com/cmake/cmake/-/issues/17976,
CMAKE_VS_PLATFORM_TOOLSET is set only when using a Visual Studio generator.

When we use Ninja as the generator, CMAKE_VS_PLATFORM_TOOLSET will be empty.
As a result:
if(${CMAKE_VS_PLATFORM_TOOLSET} STREQUAL "v140")
will be treated as:
if( STREQUAL "v140")

We may also quote it like this:
if("${CMAKE_VS_PLATFORM_TOOLSET}" STREQUAL "v140")
but that won't make the warnings disappeared in VS2015.
2020-06-30 09:40:19 -04:00
..
add_cpp_test.cmake Make singleheader tests be test-only 2020-06-23 13:35:27 -07:00
simdjson-flags.cmake CMAKE_VS_PLATFORM_TOOLSET might be empty (#1009) 2020-06-30 09:40:19 -04:00
simdjson-user-cmakecache.cmake Make singleheader tests be test-only 2020-06-23 13:35:27 -07:00