# Build from source for release

**URL:** https://forum.opencv.org/t/build-from-source-for-release/23841
**Category:** Uncategorized
**Tags:** build, cmake
**Created:** [August 19, 2025, 10:40am UTC](https://forum.opencv.org/t/build-from-source-for-release/23841 "2025-08-19T10:40:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nklskyoy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/nklskyoy/32/13615_2.png) [@nklskyoy](https://forum.opencv.org/u/nklskyoy)
#### Post date: [August 19, 2025, 10:40am UTC](https://forum.opencv.org/t/build-from-source-for-release/23841/1 "2025-08-19T10:40:29Z")

</div>

Hi all, I am trying to build OpenCV from source to enable optimzations.

I check in the build directory

`cat CMakeCache.txt | grep CMAKE_BUILD_TYPE`  
`CMAKE_BUILD_TYPE:STRING=Debug`  
`//STRINGS property for variable: CMAKE_BUILD_TYPE`  
`CMAKE_BUILD_TYPE-STRINGS:INTERNAL=Debug;Release`

does it mean I have the right configuration?

Thanks a lot in advance
