diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-06-22 00:01:39 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-06-22 00:01:39 +0000 |
commit | dadfbec63137f029a991c2cd8ff14cca3bbd2104 (patch) | |
tree | 23f4f89b5902d9c46ec27445483700c5514752e9 | |
parent | 00bfdcf40de6b6db82efc81703d838354023e38a (diff) | |
download | tigervnc-dadfbec63137f029a991c2cd8ff14cca3bbd2104.tar.gz tigervnc-dadfbec63137f029a991c2cd8ff14cca3bbd2104.zip |
Tabs to spaces
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4510 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | cmake/Modules/CMakeMacroLibtoolFile.cmake | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake index dac42867..fb27df12 100644 --- a/cmake/Modules/CMakeMacroLibtoolFile.cmake +++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake @@ -21,32 +21,32 @@ macro(libtool_create_control_file _target) # Check if we have shared extenstion or not if("${library}" MATCHES ".+\\${CMAKE_SHARED_LIBRARY_SUFFIX}$") # We got an shared library lets cut it down to path and library name then - # add to libtool dependency libs, we always assume this is a absoult path - # because this is how cmake does.. - get_filename_component(_shared_lib ${library} NAME_WE) - get_filename_component(_shared_lib_path ${library} PATH) - string(REPLACE "lib" "" _shared_lib ${_shared_lib}) + # add to libtool dependency libs, we always assume this is a absoult path + # because this is how cmake does.. + get_filename_component(_shared_lib ${library} NAME_WE) + get_filename_component(_shared_lib_path ${library} PATH) + string(REPLACE "lib" "" _shared_lib ${_shared_lib}) set(_target_dependency_libs "${_target_dependency_libs} -L${_shared_lib_path} -l${_shared_lib}") else() - # No shared library suffix found, might also be a cmake target. - # Dont continue if we have a target name as lib due to we - # assume static linkage against out targets - get_target_property(_ltp ${library} TYPE) - if(${_ltp}) - # No cmake target soo let's use find_library to see if we found any useful to use - find_library(FL ${library}) - if(FL) - # Found library, lets cut it down to make libtool happy - get_filename_component(_shared_lib ${FL} NAME_WE) - get_filename_component(_shared_lib_path ${FL} PATH) - string(REPLACE "lib" "" _shared_lib ${_shared_lib}) + # No shared library suffix found, might also be a cmake target. + # Dont continue if we have a target name as lib due to we + # assume static linkage against out targets + get_target_property(_ltp ${library} TYPE) + if(${_ltp}) + # No cmake target soo let's use find_library to see if we found any useful to use + find_library(FL ${library}) + if(FL) + # Found library, lets cut it down to make libtool happy + get_filename_component(_shared_lib ${FL} NAME_WE) + get_filename_component(_shared_lib_path ${FL} PATH) + string(REPLACE "lib" "" _shared_lib ${_shared_lib}) set(_target_dependency_libs "${_target_dependency_libs} -L${_share_lib_path} -l${_shared_lib}") - else() - # Nothing found, lets ignore it - endif() - else() - # taget detected lets ignore it - endif() + else() + # Nothing found, lets ignore it + endif() + else() + # taget detected lets ignore it + endif() endif() else() # Detected a static library, we want the absolute path so lets check if we have that @@ -54,17 +54,17 @@ macro(libtool_create_control_file _target) get_filename_component(_name ${library} NAME) string(REPLACE "${_name}" "" _path ${library}) if(NOT "${_path}" MATCHES "") - # We got a full path to static library lets add as is to libtool library dependencies + # We got a full path to static library lets add as is to libtool library dependencies set(_target_dependency_libs "${_target_dependency_libs} ${library}") else() # there no path for the static library lets use find_library to find one - find_library(FL ${library}) - if(FL) - # got the library lets add it.. - set(_target_dependency_libs "${_target_dependency_libs} ${FL}") - else() - # Nothing found, let's ignore it - endif() + find_library(FL ${library}) + if(FL) + # got the library lets add it.. + set(_target_dependency_libs "${_target_dependency_libs} ${FL}") + else() + # Nothing found, let's ignore it + endif() endif() endif() endforeach() |