mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
55831faf5b
Visual Studio Generator: The `VS_TOOL_OVERRIDE` source file property would previously only be respected for file types that CMake didn't know how to build out of the box. This change allows the user to override how any source file is built with a custom build tool, even ones with standard/recognized extensions such as `.cxx`, `.idl`, etc. Fixes: #26336
8 lines
237 B
CMake
8 lines
237 B
CMake
enable_language(CXX)
|
|
|
|
set_property(SOURCE "foo.cpp" PROPERTY VS_TOOL_OVERRIDE CustomFooCppTool)
|
|
set_property(SOURCE "foo.txt" PROPERTY VS_TOOL_OVERRIDE CustomFooTxtTool)
|
|
add_library(foo foo.cpp foo.txt)
|
|
|
|
add_library(bar bar.cpp bar.txt)
|