Changeset 3456 in CLRX


Ignore:
Timestamp:
Oct 4, 2017, 5:16:37 PM (23 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Conditional installation of clhelper.pc in pkgconfig directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/pkgconfig/CMakeLists.txt

    r3450 r3456  
    2626CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/pkgconfig/clrxutils.pc.in"
    2727        "${PROJECT_BINARY_DIR}/pkgconfig/clrxutils.pc" @ONLY)
    28 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/pkgconfig/clrxclhelper.pc.in"
    29         "${PROJECT_BINARY_DIR}/pkgconfig/clrxclhelper.pc" @ONLY)
    3028
    3129SET(PKGCONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/pkgconfig)
     
    3331              "${PROJECT_BINARY_DIR}/pkgconfig/clrxamdbin.pc"
    3432              "${PROJECT_BINARY_DIR}/pkgconfig/clrxutils.pc"
    35               "${PROJECT_BINARY_DIR}/pkgconfig/clrxclhelper.pc"
    3633              DESTINATION "${PKGCONFIG_INSTALL_DIR}")
     34             
     35IF(HAVE_OPENCL)
     36    CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/pkgconfig/clrxclhelper.pc.in"
     37            "${PROJECT_BINARY_DIR}/pkgconfig/clrxclhelper.pc" @ONLY)
     38    INSTALL(FILES "${PROJECT_BINARY_DIR}/pkgconfig/clrxclhelper.pc"
     39              DESTINATION "${PKGCONFIG_INSTALL_DIR}")
     40ENDIF(HAVE_OPENCL)
Note: See TracChangeset for help on using the changeset viewer.