Tweaks to build the whole project on Windows with CMake/MSVC 19 in 2026 - #305
Tweaks to build the whole project on Windows with CMake/MSVC 19 in 2026#305twdragon wants to merge 3 commits into
Conversation
twdragon
commented
Jul 30, 2026
- Fixed the PLC port definitions mistakenly left in the BSD section in the test program
- Added CMake tweaks to successfully build the project on Windows natively using git/MSVC/PowerShell
- Implemented TcAdsDll_ROOT CMake variable to let the build system catch the libraries from non-standard locations. Tested on non-native installation in Windows 10.0.19045 and SDK 10.0.26100.0
- Fixed the PLC port definitions mistakenly left in the BSD section
in the test program
- Added CMake tweaks to successfully build the project on Windows natively
using git/MSVC/PowerShell
- Implemented TcAdsDll_ROOT CMake variable to let the build system catch
the libraries from non-standard locations. Tested on non-native
installation in Windows 10.0.19045 and SDK 10.0.26100.0
|
Hello, I am not the maintainer, but I authored the FindTcAdsDll.cmake file that you are editing. I suggest that you should keep the support for finding TcAdsDll in old TwinCAT versions ? The way you are doing it is correct but will only work for the newest versions. The find_library and find_file PATHS argument take an array anyways. Additionally, since the default location is no longer C:/TwinCAT/.. in the new version so we can probably change it to something like this: if (WIN32 AND NOT DEFINED TcAdsDll_ROOT) Try them out, tell me if it works. |
|
@juarezr-mvtec thanks for the suggestion! Unfortunately, direct introduction of array-like path lists did not work, so I used separate variables. |
|
@juarezr-mvtec I will also try to fix the Linux pipeline, but I cannot promise to do it now, so likely it will be a separate PR |