I don't exactly remember but I believe that Code::Blocks MinGW version doesn't compile OGRE correctly so I deleted it and download the dragon team's one (recommended by OGRE).
Removing Use of DX11 in CMake seems to fix the problem.
But I got an other error :
[ 93%] Building CXX object Demos/VectorAdd_OpenCL/NVidia/CMakeFiles/AppVectorAdd
_NVidia.dir/__/MiniCL_VectorAdd.obj
..\MiniCL_VectorAdd.cpp:17:21: fatal error: CL/cl.h: No such file or directory
compilation terminated.
mingw32-make[2]: *** [Demos/VectorAdd_OpenCL/NVidia/CMakeFiles/AppVectorAdd_NVid
ia.dir/__/MiniCL_VectorAdd.obj] Error 1
mingw32-make[1]: *** [Demos/VectorAdd_OpenCL/NVidia/CMakeFiles/AppVectorAdd_NVid
ia.dir/all] Error 2
mingw32-make: *** [all] Error 2
Removing BUILD_NVIDIA_OPENCL_DEMOS seems to fix that other error (as it doesn't find the nvidia opencl base directory)
But I got a third error : (Big error message but I'd rather paste it all cause I don't know how to fix it manually)
[ 98%] Building CXX object Extras/Serialize/makesdna/CMakeFiles/makesdna.dir/mak
esdna.obj
makesdna.cpp:62:24: error: expected initializer before 'int8_t'
makesdna.cpp:63:24: error: expected initializer before 'int16_t'
makesdna.cpp:64:24: error: expected initializer before 'int32_t'
makesdna.cpp:65:24: error: expected initializer before 'int64_t'
makesdna.cpp:67:26: error: expected initializer before 'uint8_t'
makesdna.cpp:68:26: error: expected initializer before 'uint16_t'
makesdna.cpp:69:26: error: expected initializer before 'uint32_t'
makesdna.cpp:70:26: error: expected initializer before 'uint64_t'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp:189:1: warning: deprecated conversion from string constant to 'char
*'
makesdna.cpp: In function 'int make_structDNA(char*, FILE*)':
makesdna.cpp:970:20: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:971:21: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:972:21: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:973:22: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:974:19: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:975:20: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:976:21: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:977:21: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:978:22: warning: deprecated conversion from string constant to 'cha
r*'
makesdna.cpp:979:20: warning: deprecated conversion from string constant to 'cha
r*'
mingw32-make[2]: *** [Extras/Serialize/makesdna/CMakeFiles/makesdna.dir/makesdna
.obj] Error 1
mingw32-make[1]: *** [Extras/Serialize/makesdna/CMakeFiles/makesdna.dir/all] Err
or 2
mingw32-make: *** [all] Error 2
I could run some demos though. Guys, it's a really amazing engine !!!