expat.cmake 383 Bytes
Newer Older
Chuck Atkins's avatar
Chuck Atkins committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if(BUILD_SHARED_LIBS)
  set(expat_args_shared --enable-shared --disable-static)
else()
  set(expat_args_shared --disable-shared --enable-static)
endif()

superbuild_add_project(expat
  CAN_USE_SYSTEM
  CONFIGURE_COMMAND
    <SOURCE_DIR>/configure
    --prefix=<INSTALL_DIR>
    ${expat_args_shared}
  BUILD_COMMAND
    $(MAKE)
  INSTALL_COMMAND
    make install
  BUILD_IN_SOURCE 1)