CMake behavior differs on two different Windows systems
Looking for advice on how to further troubleshoot this issue. Thanks for any pointers. Seems like an environmental issue of some sort rather than a CMake bug.
I am successfully using CMake to build aws-sdk-cpp on my Windows machine, but a colleague gets errors when trying to do so using the same versions of aws-sdk-cpp and CMake. What happens is the cmake-generated .vcxproj files end up being "confused" in places, using Unix filespecs instead of Windows.
For example:
On "good" system, .vcxproj file TargetExt specifies .dll,
<TargetName Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|Win32'">aws-cpp-sdk-core</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|Win32'">.dll</TargetExt>
but on "bad" system, it specifies .so.
<TargetName Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|Win32'">libaws-cpp-sdk-core</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|Win32'">.so</TargetExt>
There are other differences as well, in <AdditionalDependencies>
, <ImportLibrary>
, and <ProgramDataBaseFile>
tags.
Both systems are using the same version of aws-sdk-cpp sources and the same version of CMake. We also tried explicitly specifying -DTARGET_ARCH="WINDOWS"
to cmake, but it didn't make a difference. Even though the output says it is building for Windows, it generates Unix filespecs for some things.