From 7cb811e4d1f17c732148aa73828fb5a14604654b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 3 Jul 2021 09:28:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20CMLIB=5FMAIN=5FDIR=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=D1=91=D1=82=D1=81=D1=8F=20=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibExternalProject.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMLibExternalProject.cmake b/CMLibExternalProject.cmake index e223d20..4ba9bdc 100644 --- a/CMLibExternalProject.cmake +++ b/CMLibExternalProject.cmake @@ -4,6 +4,10 @@ if(CMAKE_BUILD_TYPE) list(APPEND CMLIB_EXT_PROJ_DEFAULT_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) endif() +if(CMLIB_MAIN_DIR) + list(APPEND CMLIB_EXT_PROJ_DEFAULT_ARGS -DCMLIB_MAIN_DIR=${CMLIB_MAIN_DIR}) +endif() + if(CMAKE_C_COMPILER) list(APPEND CMLIB_EXT_PROJ_DEFAULT_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}) endif()