Skip to content

Out-of-source builds #3

@szellmann

Description

@szellmann

Hi,

I wonder why the include path of the CalVR project is constructed with the project binary dir as the root directory by the build system. That way you can't build out-of-source, which is useful when compiling for multiple arch's. The patch below would fix this.

Kind regards,
Stefan Zellmann


Apply to:

commit 50b8f9d
Merge: 9acc310 e8690b8
Author: ASP aprudhom@lava.ucsd.edu
Date: Thu May 16 11:24:02 2013 -0700

Merge branch 'master' of github.com:CalVR/calvr

Patch:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a9820bb..7611e10 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ SET(CALVR_MAJOR_VERSION 0)
SET(CALVR_MINOR_VERSION 0)
SET(CALVR_VERSION ${CALVR_MAJOR_VERSION}.${CALVR_MINOR_VERSION})

-INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/include)
+INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)

INSTALL(DIRECTORY "${CalVR_SOURCE_DIR}/include" DESTINATION include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions