Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Compiling with VS 2022 #123

Open
Withaust opened this issue Jul 13, 2023 · 0 comments
Open

Compiling with VS 2022 #123

Withaust opened this issue Jul 13, 2023 · 0 comments

Comments

@Withaust
Copy link

For people that might have been experiencing the same problem as I have, in order to compile with the latest version of CMake for VS2022 support, here is what you need to do:

  1. Open build\jenkins\CMakeIncludes\eval_condition_macro.cmake
  2. Replace
MACRO(EVAL_CONDITION name)
   IF(${ARGN})
     SET(${name} 1)
   ELSE(${ARGN})
     SET(${name} 0)
   ENDIF(${ARGN})
ENDMACRO(EVAL_CONDITION)

with

MACRO(EVAL_CONDITION name)
   IF(ARGN)
     SET(${name} 1)
   ELSE(ARGN)
     SET(${name} 0)
   ENDIF(ARGN)
ENDMACRO(EVAL_CONDITION)
  1. Open build\cmake\gameanalytics\CMakeLists.txt in CMake
  2. After our replacement it would spew out a bunch of warnings on configuration, but now it would actually be able to configure and generate a solution for VS 2022.
    image
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant