gamerpuppy/sts_lightspeed

cmake build error: invalid numeric argument '/Wno-shift-count-overflow'

Opened this issue · 0 comments

Hello, I have been trying to build the code on Windows 10 home edition. I receive the same error opening the project on Visual Studio 2019. Help fixing this error would be appreciated.

My g++, cmake, and Visual Studio versions are listed below in the command line output.

C:\Users\Blake\Downloads\sts_lightspeed-master>g++ --version
g++ (Rev2, Built by MSYS2 project) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\Users\Blake\Downloads\sts_lightspeed-master>cmake --version
cmake version 3.25.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

C:\Users\Blake\Downloads\sts_lightspeed-master>cmake CMakeLists.txt -Bbuild
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
-- The CXX compiler identification is MSVC 19.34.31937.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from C:/Users/Blake/Downloads/sts_lightspeed-master/json/single_include/
-- pybind11 v2.7.1
-- Found PythonInterp: C:/Users/Blake/Coding/Python39/python.exe (found version "3.9.6")
-- Found PythonLibs: C:/Users/Blake/Coding/Python39/libs/python39.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Blake/Downloads/sts_lightspeed-master/build

C:\Users\Blake\Downloads\sts_lightspeed-master>cmake --build build
MSBuild version 17.4.1+9a89d02ff for .NET Framework
  Checking File Globs
  Checking Build System
  Building Custom Rule C:/Users/Blake/Downloads/sts_lightspeed-master/CMakeLists.txt
cl : command line  error D8021: invalid numeric argument '/Wno-shift-count-overflow' [C:\Users\Blake\Downloads\sts_ligh
tspeed-master\build\slaythespire.vcxproj]