Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out-of-source builds #3

Open
szellmann opened this issue May 17, 2013 · 0 comments
Open

Out-of-source builds #3

szellmann opened this issue May 17, 2013 · 0 comments

Comments

@szellmann
Copy link
Contributor

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 [email protected]
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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant