Skip to content

Commit 01674ec

Browse files
committed
Invoke qmake in release mode when building a release cmake build
1 parent cca4a42 commit 01674ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qrenderdoc/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ set(QMAKE_LDFLAGS "")
2929
set(QMAKE_CXXFLAGS "")
3030
set(SWIG_FLAGS "")
3131

32+
if(RELEASE_MODE)
33+
set(QMAKE_CONFIG "release")
34+
endif()
35+
3236
if(ENABLE_ASAN)
3337
set (QMAKE_CXXFLAGS "-fsanitize=address -fno-omit-frame-pointer")
3438
set (QMAKE_LDFLAGS "-fsanitize=address")
@@ -41,7 +45,7 @@ endif()
4145

4246
if(STATIC_QRENDERDOC)
4347
set(QMAKE_CXXFLAGS "-DSTATIC_QRENDERDOC=1")
44-
set(QMAKE_CONFIG "debug static")
48+
set(QMAKE_CONFIG "${QMAKE_CONFIG} static")
4549
set(QMAKE_LDFLAGS "-lutil")
4650
endif()
4751

0 commit comments

Comments
 (0)