CMake: Set ZSTD_SOURCE_DIR from CMAKE_CURRENT_SOURCE_DIR

Instead of CMAKE_SOURCE_DIR, which is not correct when embedding Zstd
within a larger project.
This commit is contained in:
Michael Maltese 2017-04-20 15:35:56 -07:00
parent c17e020c9a
commit 1a96bec8db

View File

@ -9,7 +9,7 @@
PROJECT(zstd)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
SET(ZSTD_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../..")
SET(ZSTD_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
#-----------------------------------------------------------------------------
# Add extra compilation flags