On 5/2/2018 4:47 AM, Petr Kmoch wrote:
Hi Stephane.
ExternalProject is designed to run at *build* time, not at *CMake*
time. It is not really intended for mixing with normal,
non-ExternalProject targets (such as those created by add_library).
When using ExternalProject, the canonical form
Hi Stephane.
ExternalProject is designed to run at *build* time, not at *CMake* time. It
is not really intended for mixing with normal, non-ExternalProject targets
(such as those created by add_library).
When using ExternalProject, the canonical form of operation is a
SuperBuild-style project:
include(ExternalProject)
ExternalProject_Add(
WIN32DEPSV2
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/WIN32DEPSV2
DOWNLOAD_DIR .
STAMP_DIR ./stamps
SOURCE_DIR WIN32DEPSV2
GIT_REPOSITORY g...@numagit.numalliance.com:THIRD_PARTIES/WIN32DEPS.git
CONFIGURE_COMMAND ""
You probably need to manually add a dependency from your ExternalProject to
your target that needs the libraries.
For instance
ExternalProject_Add(fetch_win32_libs ...)
add_library(your_other_target ...)
add_dependencies(your_other_target fetch_win32_libs)
Greetings
Kai Wolf
Hi,
I have got some win32 libraries dependencies stored in a project .
Then I added ExternalProject_Add at beginning of my cmakelists file in
order to clone this dependency to be available.
and then provide the root path as follow:
SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc