Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ruslan Baratov
CMake
Commits
b39fe940
Commit
b39fe940
authored
Feb 17, 2010
by
David Cole
Browse files
Fix problem with ExternalProject test in in-source builds.
parent
1e439737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tests/ExternalProject/CMakeLists.txt
View file @
b39fe940
...
...
@@ -24,6 +24,17 @@ if(NOT DEFINED can_build_tutorial_step5)
set
(
can_build_tutorial_step5 0
)
endif
()
endif
()
# The ExternalProject builds of Tutorial Step5 cannot be built
# correctly 2nd and later times in an in-source build...
# (because the CMakeCache.txt from the real in-source build of
# the Tests/Tutorial/Step5 directory gets copied when we do
# the "source directory copy" step... but it still refers to
# its original path which yields a configure error.) So:
#
if
(
"
${
CMAKE_SOURCE_DIR
}
"
STREQUAL
"
${
CMAKE_BINARY_DIR
}
"
)
set
(
can_build_tutorial_step5 0
)
endif
()
endif
()
message
(
STATUS
"can_build_tutorial_step5='
${
can_build_tutorial_step5
}
'"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment