expat.cmake 405 Bytes
Newer Older
Chuck Atkins's avatar
Chuck Atkins committed
1
2
3
4
5
6
7
8
9
10
11
12
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}
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
13
    --without-docbook
Chuck Atkins's avatar
Chuck Atkins committed
14
15
16
17
18
  BUILD_COMMAND
    $(MAKE)
  INSTALL_COMMAND
    make install
  BUILD_IN_SOURCE 1)