From: Michael Maltese Date: Thu, 20 Apr 2017 22:35:56 +0000 (-0700) Subject: CMake: Set ZSTD_SOURCE_DIR from CMAKE_CURRENT_SOURCE_DIR X-Git-Tag: v1.2.0^2~32^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a96bec8dba9d8b8147259a703dd3b7f26584080;p=thirdparty%2Fzstd.git 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. --- diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index bf6890818..0aa7b3072 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -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