Closed Michael2109 closed 2 years ago
I think the error is that you are using mingw
. The version of gcc included with mingw will not properly build avx and will crash when ran.
You can just build it with VC, if you do not want to run VS just use cmake's build
cmake --build {your build directory}
make sure that cmake generates a VC build
cmake ... -G "Visual Studio 16 2019" -A x64 //or -G "Visual Studio 17 2022" -A x64
@caseymcc That was it and thank you for the quick responses!
I would like to add FastNoise to my CMake project. To do so I've added this to my
CMakeLists.txt
.I then copied the
FastNoise2
directory into alibraries
directory at the top level of my project.I can run the project successfully and include
FastNoise/FastNoise.h
however if I addauto fnSimplex = FastNoise::New<FastNoise::Simplex>();
it instantly exits. If I run the generated.exe
I get this error:Here is my full
CMakeLists
for if there is anything obvious.How to I add this correctly to my CMake project?