Commit c8c51ec2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Implement disabling of automatic library installation

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10763 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 49bcbe4e
...@@ -531,23 +531,27 @@ function (acg_add_library _target _libtype) ...@@ -531,23 +531,27 @@ function (acg_add_library _target _libtype)
${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR}/lib${_target}.a) ${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR}/lib${_target}.a)
endif () endif ()
if (NOT ACG_PROJECT_MACOS_BUNDLE OR NOT APPLE)
if (${_type} STREQUAL SHARED OR ${_type} STREQUAL STATIC ) # Block installation of libraries by setting ACG_NO_LIBRARY_INSTALL
install (TARGETS ${_target} if ( NOT ACG_NO_LIBRARY_INSTALL )
RUNTIME DESTINATION ${ACG_PROJECT_BINDIR} if (NOT ACG_PROJECT_MACOS_BUNDLE OR NOT APPLE)
LIBRARY DESTINATION ${ACG_PROJECT_LIBDIR} if (${_type} STREQUAL SHARED OR ${_type} STREQUAL STATIC )
ARCHIVE DESTINATION ${ACG_PROJECT_LIBDIR}) install (TARGETS ${_target}
if (_and_static) RUNTIME DESTINATION ${ACG_PROJECT_BINDIR}
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${_target}Static.a LIBRARY DESTINATION ${ACG_PROJECT_LIBDIR}
DESTINATION ${ACG_PROJECT_LIBDIR} ARCHIVE DESTINATION ${ACG_PROJECT_LIBDIR})
RENAME lib${_target}.a if (_and_static)
PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${_target}Static.a
DESTINATION ${ACG_PROJECT_LIBDIR}
RENAME lib${_target}.a
PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
endif ()
elseif (${_type} STREQUAL MODULE)
install (TARGETS ${_target} DESTINATION ${ACG_PROJECT_PLUGINDIR})
endif () endif ()
elseif (${_type} STREQUAL MODULE)
install (TARGETS ${_target} DESTINATION ${ACG_PROJECT_PLUGINDIR})
endif () endif ()
endif () endif()
endfunction () endfunction ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment