[brlcad-commits] SF.net SVN: brlcad:[46749] brlcad/trunk/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2011-09-16 20:22:45
|
Revision: 46749 http://brlcad.svn.sourceforge.net/brlcad/?rev=46749&view=rev Author: starseeker Date: 2011-09-16 20:22:38 +0000 (Fri, 16 Sep 2011) Log Message: ----------- Make warnings noiser, also complain about BRLCAD_DATA Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2011-09-16 20:15:26 UTC (rev 46748) +++ brlcad/trunk/CMakeLists.txt 2011-09-16 20:22:38 UTC (rev 46749) @@ -114,7 +114,7 @@ SET(BRLCAD_ROOT "$ENV{BRLCAD_ROOT}") IF(BRLCAD_ROOT) IF(NOT BRLCAD_ROOT_OVERRIDE) - MESSAGE(WARNING "\nBRLCAD_ROOT should only be used to override an install directory at runtime. BRLCAD_ROOT is presently set to \"${BRLCAD_ROOT}\" It is *highly* recommended that BRLCAD_ROOT be unset and not used.") + MESSAGE(WARNING "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\nBRLCAD_ROOT should only be used to override an install directory at runtime. BRLCAD_ROOT is presently set to \"${BRLCAD_ROOT}\" It is *highly* recommended that BRLCAD_ROOT be unset and not used.\n}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}") IF(CMAKE_INSTALL_PREFIX AND NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT ) IF(${BRLCAD_ROOT} STREQUAL "${CMAKE_INSTALL_PREFIX}") MESSAGE("BRLCAD_ROOT is not necessary and may cause unexpected behavior") @@ -130,11 +130,20 @@ ENDIF(BRLCAD_ROOT) IF(NOT BRLCAD_ROOT_OVERRIDE) IF(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") - MESSAGE(WARNING "\nIt is STRONGLY recommended that you DO NOT install BRL-CAD into /usr as BRL-CAD provides several libraries that may conflict with other libraries (e.g. librt, libbu, libbn) on certain system configurations.\nSince our libraries predate all those that we're known to conflict with and are at the very core of our geometry services and project heritage, we have no plans to change the names of our libraries at this time.\nINSTALLING INTO /usr CAN MAKE A SYSTEM COMPLETELY UNUSABLE. If you choose to continue installing into /usr, you do so entirely at your own risk. You have been warned.") + MESSAGE(WARNING "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\nIt is STRONGLY recommended that you DO NOT install BRL-CAD into /usr as BRL-CAD provides several libraries that may conflict with other libraries (e.g. librt, libbu, libbn) on certain system configurations.\nSince our libraries predate all those that we're known to conflict with and are at the very core of our geometry services and project heritage, we have no plans to change the names of our libraries at this time.\nINSTALLING INTO /usr CAN MAKE A SYSTEM COMPLETELY UNUSABLE. If you choose to continue installing into /usr, you do so entirely at your own risk. You have been warned.\n}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}") MESSAGE(FATAL_ERROR "If you wish to proceed using /usr as your prefix, define BRLCAD_ROOT_OVERRIDE=1 for CMake") ENDIF(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") ENDIF(NOT BRLCAD_ROOT_OVERRIDE) +# While we're at it, complain if BRLCAD_DATA is set +SET(BRLCAD_DATA_ENV "$ENV{BRLCAD_DATA}") +IF(BRLCAD_DATA_ENV) + MESSAGE(WARNING "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\nBRLCAD_DATA should only be used to override an install directory at runtime. BRLCAD_DATA is presently set to \"${BRLCAD_DATA_ENV}\" It is *highly* recommended that BRLCAD_DATA be unset and not used.\n}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}") + IF(SLEEP_EXEC) + EXECUTE_PROCESS(COMMAND ${SLEEP_EXEC} 2) + ENDIF(SLEEP_EXEC) +ENDIF(BRLCAD_ROOT) + # Searching the system for packages presents something of a dilemma - # in most situations it is Very Bad for a BRL-CAD build to be using # older versions of libraries in install directories as search results. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |