Порядок аргументов
This commit is contained in:
parent
1a3c65e803
commit
9f8f581446
@ -8,13 +8,14 @@ list(APPEND _ext_project_args
|
|||||||
INSTALL_DIR ${CMAKE_BINARY_DIR}
|
INSTALL_DIR ${CMAKE_BINARY_DIR}
|
||||||
BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-qt.a
|
BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-qt.a
|
||||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-filesystem.a
|
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libmyx-filesystem.a
|
||||||
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS})
|
CMAKE_ARGS ${CMLIB_EXT_PROJ_DEFAULT_ARGS}
|
||||||
|
<SOURCE_DIR>)
|
||||||
if(MyxlibThirdparty_FIND_COMPONENTS STREQUAL "headers")
|
if(MyxlibThirdparty_FIND_COMPONENTS STREQUAL "headers")
|
||||||
list(APPEND _ext_project_args
|
list(APPEND _ext_project_args
|
||||||
BUILD_COMMAND true
|
BUILD_COMMAND true
|
||||||
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myxlib-install-headers)
|
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} myxlib-install-headers)
|
||||||
endif()
|
endif()
|
||||||
ExternalProject_Add(${_ext_project_args} <SOURCE_DIR>)
|
ExternalProject_Add(${_ext_project_args})
|
||||||
unset(_ext_project_args)
|
unset(_ext_project_args)
|
||||||
|
|
||||||
set(MYXLIB_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)
|
set(MYXLIB_IS_EXTERNAL_PROJECT ON CACHE BOOL "" FORCE)
|
||||||
|
Loading…
Reference in New Issue
Block a user