I'm using Visual Studio 2017 and CMake 3.15.4 for a C# / Windows form project, which requires a handful of external references. I set them up in the following way:
set_property(TARGET my_exe PROPERTY VS_DOTNET_REFERENCES
${dependency_1}
${dependency_2}
${dependency_3})
set_property(TARGET my_exe PROPERTY VS_DOTNET_REFERENCE_${dependency_1}
"path_to_dependency_1")
...
I notice that under the Properties menu of each dependency, the property Specific Version is always set to False
by default. I'm wondering how I could set it to True
in CMake script to make the target use certain version of dependencies. Thanks for any pointer.