mirror of
https://github.com/facebook/zstd.git
synced 2025-12-06 00:02:05 -05:00
Merge pull request #1405 from pitrou/allow_cmake_debug_builds
Allow creating debug builds with CMake
This commit is contained in:
commit
f6eb12084d
@ -7,12 +7,15 @@
|
|||||||
# in the COPYING file in the root directory of this source tree).
|
# in the COPYING file in the root directory of this source tree).
|
||||||
# ################################################################
|
# ################################################################
|
||||||
|
|
||||||
PROJECT(zstd)
|
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
|
||||||
|
|
||||||
|
PROJECT(zstd)
|
||||||
SET(ZSTD_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
|
SET(ZSTD_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
|
||||||
|
|
||||||
# Ensure Release build even if not invoked via Makefile
|
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
SET(CMAKE_BUILD_TYPE "Release")
|
message(STATUS "No build type selected, defaulting to Release")
|
||||||
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
|
endif()
|
||||||
|
|
||||||
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
|
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
|
||||||
INCLUDE(GNUInstallDirs)
|
INCLUDE(GNUInstallDirs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user