Запрет установки в каталог с исходниками
This commit is contained in:
parent
8fbf0a3b3d
commit
956a94800f
@ -5,6 +5,10 @@ if(CMAKE_INSTALL_PREFIX STREQUAL PROJECT_BINARY_DIR)
|
||||
message(FATAL_ERROR "Cannot install into build directory")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_PREFIX STREQUAL PROJECT_SOURCE_DIR)
|
||||
message(FATAL_ERROR "Cannot install into source directory")
|
||||
endif()
|
||||
|
||||
include(CMLibDisableInSourceBuild)
|
||||
include(CMakeParseArguments)
|
||||
include(GNUInstallDirs)
|
||||
|
Loading…
Reference in New Issue
Block a user