Skip to content

Commit

Permalink
Add usage comment, remove debugging note
Browse files Browse the repository at this point in the history
  • Loading branch information
drummerdoc committed Sep 12, 2013
1 parent 685922d commit 7f63035
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ endif()
# #> export bdir=`pwd`
# #> mkdir <new_build_dir>
# #> cd <new_build_dir>
# #> cmake $bdir
# #> cmake -DCMAKE_INSTALL_DIR:PATH=<dir> $bdir
# #> make
# [ optionally #> make install ]
#
# The install target will place all C++/Fortran header and mod files in an include folder,
# and the CCSE libraries in a lib folder.
# the CCSE libraries in a lib folder, plus some stuff in perl and cmake folders.
#
# Note: If you intend to use install, almost surely you will want to set the absolute path
# of the folder where the files will be installed:
# An example cmake input file to build an app that links to the libs built from here:
#
# BoxLib/Tutorials/MultiGrid_C/CMakeLists.txt
#
# CMAKE_INSTALL_PREFIX
#
# Below, we have set some of the switches for reasonable default behavior, these can be
# overridden at the cmake command line, ie "cmake -DVAR=VALUE", or by editing the values
# directly below.
# directly below. NOTE: If the C++ classes are to be used, the BL_SPACEDIM value must
# agree between the lib and the app (at the moment this is not checked)
#

# Define the project name
Expand Down
3 changes: 0 additions & 3 deletions Tools/CMake/InstallManager.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ endfunction(makefile_include_dirs)
function(makefile_library_dirs)

cmake_parse_arguments(PARSE_ARGS "" "MAKE_LIB_LIST" "CMAKE_LIB_LIST" ${ARGN})
#print_variable(PARSE_ARGS_CMAKE_LIB_LIST)
message(STATUS "PARSE_ARGS_CMAKE_LIB_LIST: ${PARSE_ARGS_CMAKE_LIB_LIST}")

set(tmp_lib_list)
set(loop_list ${PARSE_ARGS_CMAKE_LIB_LIST})
list(REVERSE loop_list)
Expand Down
19 changes: 19 additions & 0 deletions Tutorials/MultiGrid_C/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
# -*- mode: cmake -*-------------------------------------------

#
# Usage:
#
# Typically cmake is used to support an "out-of-source-tree" build. To this with default
# settings (see below):
#
# #> export bdir=`pwd`
# #> mkdir <new_build_dir>
# #> cd <new_build_dir>
# #> cmake $bdir
# #> make
#
# Below, we have set some of the switches for reasonable default behavior, these can be
# overridden at the cmake command line, ie "cmake -DVAR=VALUE", or by editing the values
# directly below. NOTE: If the C++ classes are to be used, the BL_SPACEDIM value must
# agree between the lib and the app (at the moment this is not checked)
#

cmake_minimum_required(VERSION 2.8.8)
enable_language(CXX)
enable_language(C)
Expand Down

0 comments on commit 7f63035

Please sign in to comment.