build: set CMAKE_GENERATOR_TOOLSET only for VS generator

Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak
2024-07-01 12:07:44 +00:00
committed by Compute-Runtime-Automation
parent 1b7f61341c
commit 75cb7f85d2

View File

@ -18,7 +18,7 @@ if(NOT DEFINED NEO_SOURCE_DIR)
set(NEO_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
endif()
if(MSVC)
if(CMAKE_GENERATOR MATCHES "Visual Studio")
set(CMAKE_GENERATOR_TOOLSET "host=x64")
endif()