diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-21 20:23:54 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-21 20:23:54 (GMT) |
commit | 1383368628411f3834e2e29e81be306db74c610f (patch) | |
tree | 5dc8ec712f63accdd7c2321695e4e5134bfa2215 /Modules/Platform | |
parent | 7f1fbe4e4c3ab8debde333e80e697208407c0a64 (diff) | |
download | CMake-1383368628411f3834e2e29e81be306db74c610f.zip CMake-1383368628411f3834e2e29e81be306db74c610f.tar.gz CMake-1383368628411f3834e2e29e81be306db74c610f.tar.bz2 |
ENH: print a warning if ADD_LIBRARY( SHARED/MODULE ) is used and the target
platform doesn't support shared libraries
Alex
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Generic.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Generic.cmake b/Modules/Platform/Generic.cmake index fdced24..9c78745 100644 --- a/Modules/Platform/Generic.cmake +++ b/Modules/Platform/Generic.cmake @@ -6,3 +6,7 @@ # about the platform. So everything has to be specified # in the system/compiler files ${CMAKE_SYSTEM_NAME}-<compiler_basename>.cmake # and/or ${CMAKE_SYSTEM_NAME}-<compiler_basename>-${CMAKE_SYSTEM_PROCESSOR}.cmake + +# (embedded) targets without operating system usually don't support shared libraries +SET(CMAKE_TARGET_SUPPORTS_ONLY_STATIC_LIBS TRUE) + |