Error Compiling Spatial Mapping Example v3.3.1 on Windows

I downloaded ZED SDK for Windows 10 version 3.3.1and tried to compile the spatial mapping example using the following cmake configuration:
cmake -G "Visual Studio 14 2015" -Ax64 -DCMAKE_BUILD_TYPE=Release

Even though the build type is Release, I get the following error:

...\spatial mapping\basic\cpp\src\GLViewer.cpp(4): fatal error C1189: #error:  "This sample should not be built in Debug mode, use RelWithDebInfo if you want to do
 step by step." [...\spatial mapping\basic\cpp\build\ZED_Spatial_Mapping.vcxproj]

Can you tell me what I am doing wrong?

Hi Therese,
You should also specify it in the build command:
cmake --build . --config "Release"

Thanks a lot! That worked!