diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-11-25 19:24:06 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-16 08:02:18 -0800 |
commit | 1f960eef74f82a31dec350b840a1ba70113a4622 (patch) | |
tree | 9bda9475b3ca8d5b97f96ef7707aa99600ab8e29 /cmake | |
parent | 3462da19fdcb0cf21cfc55ba82bd124ffab8e027 (diff) | |
download | subsurface-1f960eef74f82a31dec350b840a1ba70113a4622.tar.gz |
Accept insourcesubdir builds
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/MacroOutOfSourceBuild.cmake | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cmake/Modules/MacroOutOfSourceBuild.cmake b/cmake/Modules/MacroOutOfSourceBuild.cmake index dedeef352..71a8ca4cc 100644 --- a/cmake/Modules/MacroOutOfSourceBuild.cmake +++ b/cmake/Modules/MacroOutOfSourceBuild.cmake @@ -24,10 +24,7 @@ # # Ensures that we do an out of source build MACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD MSG) STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource) - GET_FILENAME_COMPONENT(PARENTDIR ${CMAKE_SOURCE_DIR} PATH) - STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${PARENTDIR}" insourcesubdir) - MESSAGE( "${CMAKE_SOURCE_DIR} , ${CMAKE_BINARY_DIR}, ${PARENTDIR}") - IF(insource OR insourcesubdir) + IF(insource) MESSAGE(FATAL_ERROR "${MSG}") - ENDIF(insource OR insourcesubdir) + ENDIF() ENDMACRO(MACRO_ENSURE_OUT_OF_SOURCE_BUILD)
\ No newline at end of file |