------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=145506 Summary: cmake error on Solaris - Uses SunOS directory when directory is called Solaris Product: ksysguard Version: unspecified Platform: Compiled Sources OS/Version: Solaris Status: UNCONFIRMED Severity: normal Priority: NOR Component: general AssignedTo: ksysguard-bugs kde org ReportedBy: stevee zuken co uk 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