~smspillaz/compiz-core/stack-api-impl

« back to all changes in this revision

Viewing changes to cmake/CompizPlugin.cmake

  • Committer: Sam Spilsbury
  • Date: 2010-05-17 18:18:56 UTC
  • Revision ID: git-v1:9447ee14f0bc64d005c153eb54247fe8a3b1c44a
Make full rpath support optional (for those who need to build in a non-standard path)

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
                             ${_schema_sources}
382
382
        )
383
383
 
384
 
        set_target_properties (
385
 
            ${plugin} PROPERTIES
386
 
            SKIP_BUILD_RPATH TRUE
387
 
            INSTALL_RPATH "${COMPIZ_LIBDIR}/compiz"
388
 
            COMPILE_FLAGS "${${_PLUGIN}_CFLAGSADD}"
389
 
            LINK_FLAGS "${${_PLUGIN}_LDFLAGSADD}"
390
 
        )
 
384
        if (COMPIZ_BUILD_WITH_RPATH)
 
385
            set_target_properties (
 
386
                ${plugin} PROPERTIES
 
387
                INSTALL_RPATH_USE_LINK_PATH 1
 
388
                BUILD_WITH_INSTALL_RPATH 1
 
389
                SKIP_BUILD_RPATH 0
 
390
                COMPILE_FLAGS "${${_PLUGIN}_CFLAGSADD}"
 
391
                LINK_FLAGS "${${_PLUGIN}_LDFLAGSADD}"
 
392
            )
 
393
        else (COMPIZ_BUILD_WITH_RPATH)
 
394
            set_target_properties (
 
395
                ${plugin} PROPERTIES
 
396
                SKIP_BUILD_RPATH 1
 
397
                INSTALL_RPATH "${COMPIZ_LIBDIR}/compiz"
 
398
                COMPILE_FLAGS "${${_PLUGIN}_CFLAGSADD}"
 
399
                LINK_FLAGS "${${_PLUGIN}_LDFLAGSADD}"
 
400
            )
 
401
        endif (COMPIZ_BUILD_WITH_RPATH)
391
402
 
392
403
        target_link_libraries (
393
404
            ${plugin} ${COMPIZ_LIBRARIES}