[kde-common/cmake] tde_add_library: CMAKE_PROJECT_NAME replaced with PROJECT_NAME

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1198573 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
pull/1/head
samelian 14 years ago
parent 2c88a94fbd
commit 1c4b89d719

@ -539,7 +539,7 @@ macro( tde_add_library _arg_target )
if( "SHARED" STREQUAL ${_type} AND NOT _no_export ) if( "SHARED" STREQUAL ${_type} AND NOT _no_export )
# we export only shared libs (no static, no modules) # we export only shared libs (no static, no modules)
# also, do not export target marked as "NO_EXPORT" (usually for kdeinit) # also, do not export target marked as "NO_EXPORT" (usually for kdeinit)
install( TARGETS ${_target} DESTINATION ${_destination} EXPORT ${CMAKE_PROJECT_NAME} ) install( TARGETS ${_target} DESTINATION ${_destination} EXPORT ${PROJECT_NAME} )
else( "SHARED" STREQUAL ${_type} AND NOT _no_export ) else( "SHARED" STREQUAL ${_type} AND NOT _no_export )
install( TARGETS ${_target} DESTINATION ${_destination} ) install( TARGETS ${_target} DESTINATION ${_destination} )
endif( "SHARED" STREQUAL ${_type} AND NOT _no_export ) endif( "SHARED" STREQUAL ${_type} AND NOT _no_export )

Loading…
Cancel
Save