Skip to content

Windows build command issue fix. #13

Description

@tyrionhuu

At the forth step:

rm -r build/*
cmake -S ./checker -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build ./build
cp ./build/win_checker_64bit.exe ./Xchecklist/Checker/

Modify cmake -S ./checker -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo to cmake -G "MinGW Makefiles" -S ./checker -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo.

Otherwise at least I got the following error with cmake version 4.0.2 and gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0:

-- Building for: NMake Makefiles
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Error at CMakeLists.txt:9 (project):
  Running

   'nmake' '-?'

  failed with:

   no such file or directory


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions