You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was discovered for Visual Studio 16 2019. Below is the full CMake command that resulted in this issue. Note, the command was issued as part of a PowerShell script. & $PSScriptRoot\cmake-3.20.1-windows-x86_64\bin\cmake.exe -DCMAKE_INSTALL_PREFIX="../installs" -G"Visual Studio 16 2019" -A x64 -DJAVA_HOME=$PSScriptRoot/jdk1.8.0_201 -DBUILD_EXAMPLES=OFF -DGRAVITY_USE_EXTERNAL_PROTOBUF=ON -DGRAVITY_USE_EXTERNAL_ZEROMQ=ON ..
The text was updated successfully, but these errors were encountered:
Attempted to build Gravity on Windows using CMake and received an illegal token error on the following line: https://github.com/aphysci/gravity/blob/master/src/api/cpp/GravityConfigParser.cpp#L83. The issue appears related to this forum post: https://stackoverflow.com/questions/5004858/why-is-stdmin-failing-when-windows-h-is-included. The issue was solved locally by adding parentheses around the min function (i.e. std::min -> (std::min)). The forum post describes other possible solutions.
This was discovered for Visual Studio 16 2019. Below is the full CMake command that resulted in this issue. Note, the command was issued as part of a PowerShell script.
& $PSScriptRoot\cmake-3.20.1-windows-x86_64\bin\cmake.exe -DCMAKE_INSTALL_PREFIX="../installs" -G"Visual Studio 16 2019" -A x64 -DJAVA_HOME=$PSScriptRoot/jdk1.8.0_201 -DBUILD_EXAMPLES=OFF -DGRAVITY_USE_EXTERNAL_PROTOBUF=ON -DGRAVITY_USE_EXTERNAL_ZEROMQ=ON ..
The text was updated successfully, but these errors were encountered: