From 139790f963310aad80b82382796c518b58f1e43c Mon Sep 17 00:00:00 2001 From: Filip Wasil Date: Tue, 17 Jun 2014 11:50:29 +0200 Subject: [PATCH] Assimp can now be built as a subproject in CMake based projects Signed-off-by: Filip Wasil --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d3324285d..31561864f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,11 +32,11 @@ if(NOT GIT_COMMIT_HASH) endif(NOT GIT_COMMIT_HASH) configure_file( - ${CMAKE_SOURCE_DIR}/revision.h.in - ${CMAKE_BINARY_DIR}/revision.h + ${CMAKE_CURRENT_SOURCE_DIR}/revision.h.in + ${CMAKE_CURRENT_BINARY_DIR}/revision.h ) -include_directories(${CMAKE_BINARY_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR}) option(ASSIMP_OPT_BUILD_PACKAGES "Set to ON to generate CPack configuration files and packaging targets" OFF) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules" )