Skip to content

Commit 19c3b2d

Browse files
committed
Disable zlib example build
Specifying CMAKE_BUILD_TYPE for RelWithDbgInfo
1 parent 4001ebc commit 19c3b2d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ IF (APPLE)
2222
SET(CMAKE_MACOSX_RPATH 1)
2323
ENDIF()
2424

25+
SET(CMAKE_BUILD_TYPE RelWithDebInfo)
26+
2527
### Platform checks
2628
INCLUDE(${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
2729
INCLUDE(${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)

ext/zlib/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ IF (NOT ZLIB_FOUND)
103103
# this will duplicate so delete it
104104
FILE(REMOVE ${ZLIB_SRC_DIR}/zconf.h)
105105
# CMake add C_FLAGS to RC_FLAGS. how stupid it is, eh?
106+
SET(ZLIB_BUILD_EXAMPLES OFF) # disable example build, we don't need it
106107
ADD_SUBDIRECTORY(${ZLIB_SRC_DIR} zlib)
107108
INCLUDE_DIRECTORIES(${ZLIB_SRC_DIR})
108109
# for zconf.h

0 commit comments

Comments
 (0)