Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.4.6 OS: Solaris I get this cmake error on Solaris CMake Error: Error in cmake code at /cad4/stevee/kde-svn/kdebase/workspace/ksysguard/ksysguardd/CMakeLists.txt:25: ADD_SUBDIRECTORY given source "SunOS" which is not an existing directory. This is because CMakeLists.txt has: if( ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" ) add_subdirectory( "FreeBSD" ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/FreeBSD ) else( ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" ) add_subdirectory( ${CMAKE_SYSTEM_NAME} ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_SYSTEM_NAME} ) endif( ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" ) and ${CMAKE_SYSTEM_NAME} is "SunOS", but the directory is called Solaris. I changed CMakeLists.txt to if( ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" ) add_subdirectory( "FreeBSD" ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/FreeBSD ) else( ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" ) if( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" ) add_subdirectory( "Solaris" ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/Solaris ) else( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" ) add_subdirectory( ${CMAKE_SYSTEM_NAME} ) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_SYSTEM_NAME} ) endif( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" ) endif( ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" ) which fixed it
Created attachment 20592 [details] Cope with difference between ${CMAKE_SYSTEM_NAME} and directory name on Solaris
Fixed in r665302.