cmajor-lang / cmajor

The Cmajor public repository
https://cmajor.dev
Other
522 stars 31 forks source link

/bigobj is flag required to compile the CLAP target with MSVC #62

Closed giohappy closed 4 months ago

giohappy commented 4 months ago

The CLAP target requires the /bigobj flag to compile with MSVC. I set it manually inside CMakeLists.txt:

if(MSVC)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif()

I'm building with VS 2022 on Windows 11 x86 64.

giohappy commented 4 months ago

@cesaref I suppose this can be closed since it's been fixed in https://github.com/cmajor-lang/cmajor/commit/2c9e299a7eaaea74e1cfaf188281d15b8bac0423