Skip to content

Commit 1eb469f

Browse files
author
Dilawar Singh
committed
Merge commit '2af833a02ab1ad4d1e9caf12efe7705e73fb2c32'
2 parents c31c9eb + 2af833a commit 1eb469f

File tree

232 files changed

+2350
-100408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+2350
-100408
lines changed

moose-core/CMakeLists.txt

Lines changed: 8 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ endif()
7272

7373
################################ CMAKE OPTIONS ##################################
7474

75-
option(WITH_DOC "Build documentation using python-sphinx and doxygen" OFF)
7675
option(VERBOSITY "Set MOOSE verbosity level (deprecated)" 0)
7776
## Unit testing and debug mode.
7877
option(DEBUG "Build with debug support" OFF)
@@ -201,10 +200,6 @@ if(LIBSBML_FOUND)
201200
find_package(LibXML2 REQUIRED)
202201
endif()
203202
include_directories(${LibXML2_INCLUDE_DIRS})
204-
if(${LIBSBML_LIBRARY_DIRS})
205-
target_link_libraries(libmoose PROPERTIES LINK_FLAGS "-L${LIBSBML_LIBRARY_DIRS}")
206-
endif()
207-
208203
else()
209204
message(
210205
"======================================================================\n"
@@ -267,23 +262,17 @@ if(WITH_GSL)
267262
# top level.
268263
include_directories( ${GSL_INCLUDE_DIRS} )
269264
elseif(WITH_BOOST)
270-
find_package(Boost 1.44 COMPONENTS filesystem REQUIRED)
265+
find_package(Boost 1.44 COMPONENTS filesystem random REQUIRED)
271266
find_package( LAPACK REQUIRED )
272267
add_definitions( -DUSE_BOOST -UUSE_GSL )
273268
include_directories( ${Boost_INCLUDE_DIRS} )
274-
# check_include_file_cxx(
275-
# ${Boost_INCLUDE_DIRS}/boost/random/random_device.hpp
276-
# BOOST_RANDOM_DEVICE_EXISTS
277-
# )
278-
# if(BOOST_RANDOM_DEVICE_EXISTS)
279-
# add_definitions(-DBOOST_RANDOM_DEVICE_EXISTS)
280-
# endif(BOOST_RANDOM_DEVICE_EXISTS)
281-
# check_include_file_cxx(
282-
# ${Boost_INCLUDE_DIRS}/boost/filesystem.hpp BOOST_FILESYSTEM_EXISTS
283-
# )
284-
# if(BOOST_FILESYSTEM_EXISTS)
285-
# add_definitions( -DBOOST_FILESYSTEM_EXISTS )
286-
# endif(BOOST_FILESYSTEM_EXISTS)
269+
check_include_file_cxx(
270+
${Boost_INCLUDE_DIRS}/boost/random/random_device.hpp
271+
BOOST_RANDOM_DEVICE_EXISTS
272+
)
273+
if(BOOST_RANDOM_DEVICE_EXISTS)
274+
add_definitions(-DBOOST_RANDOM_DEVICE_EXISTS)
275+
endif(BOOST_RANDOM_DEVICE_EXISTS)
287276
endif()
288277

289278
## Setup hdf5
@@ -513,42 +502,14 @@ if(CMAKE_VERSION VERSION_LESS "2.8.0")
513502
target_link_libraries(moose.bin PUBLIC moose)
514503
ELSE()
515504
target_link_libraries(moose.bin LINK_PUBLIC moose)
516-
if(LIBSBML_FOUND)
517-
target_link_libraries(moose.bin LINK_PUBLIC ${LIBSBML_LIBRARIES})
518-
endif(LIBSBML_FOUND)
519505
ENDIF()
520506

521-
if(WITH_DOC)
522-
FIND_PACKAGE(Doxygen REQUIRED)
523-
add_custom_command(TARGET libmoose POST_BUILD
524-
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.full
525-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
526-
COMMENT "Building developer documentation"
527-
VERBATIM
528-
)
529-
endif(WITH_DOC)
530-
531507
######################### BUILD PYMOOSE ########################################
532508
# Root of all python module.
533509
if(WITH_PYTHON)
534510
add_subdirectory( pymoose )
535511
endif(WITH_PYTHON)
536512

537-
## Moose documentation
538-
option(WITH_DOC "Build documentation using python-sphinx and doxygen" OFF)
539-
if(WITH_DOC)
540-
FIND_PACKAGE(Sphinx REQUIRED)
541-
message(STATUS "Build documentation.")
542-
set(USER_DOC_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Docs/user/py/_build/html)
543-
set(DEVELOPER_DOC_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Docs/developer/html)
544-
ADD_CUSTOM_TARGET(docs ALL
545-
COMMAND ./docgen
546-
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
547-
COMMENT "Generating html doc using sphinx and doxygen"
548-
)
549-
550-
endif(WITH_DOC)
551-
552513
######################### INSTALL ##############################################
553514

554515
install(TARGETS moose.bin
@@ -575,17 +536,6 @@ if(WITH_PYTHON)
575536

576537
endif(WITH_PYTHON)
577538

578-
if(WITH_DOC)
579-
message(STATUS "Installing moose doc")
580-
install(DIRECTORY ${USER_DOC_OUTPUT_DIR}
581-
DESTINATION share/doc/moose
582-
)
583-
584-
install(DIRECTORY ${DEVELOPER_DOC_OUTPUT_DIR}
585-
DESTINATION share/doc/moose/developer
586-
)
587-
endif()
588-
589539
# Print message to start build process
590540
if(${CMAKE_BUILD_TOOL} MATCHES "make")
591541
message(

moose-core/CheckCXXCompiler.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CHECK_CXX_COMPILER_FLAG( "-std=c++11" COMPILER_SUPPORTS_CXX11 )
55
CHECK_CXX_COMPILER_FLAG( "-std=c++0x" COMPILER_SUPPORTS_CXX0X )
66
CHECK_CXX_COMPILER_FLAG( "-Wno-strict-aliasing" COMPILER_WARNS_STRICT_ALIASING )
77

8+
9+
810
# Turn warning to error: Not all of the options may be supported on all
911
# versions of compilers. be careful here.
1012
add_definitions(-Wall
@@ -18,6 +20,13 @@ if(COMPILER_WARNS_STRICT_ALIASING)
1820
add_definitions( -Wno-strict-aliasing )
1921
endif(COMPILER_WARNS_STRICT_ALIASING)
2022

23+
# Disable some harmless warnings.
24+
CHECK_CXX_COMPILER_FLAG( "-Wno-unused-but-set-variable"
25+
COMPILER_SUPPORT_UNUSED_BUT_SET_VARIABLE_NO_WARN
26+
)
27+
if(COMPILER_SUPPORT_UNUSED_BUT_SET_VARIABLE_NO_WARN)
28+
add_definitions( "-Wno-unused-but-set-variable" )
29+
endif(COMPILER_SUPPORT_UNUSED_BUT_SET_VARIABLE_NO_WARN)
2130

2231
if(COMPILER_SUPPORTS_CXX11)
2332
message(STATUS "Your compiler supports c++11 features. Enabling it")

moose-core/CheckMooseCompiler.cmake

Lines changed: 0 additions & 36 deletions
This file was deleted.

moose-core/Docs/README.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

moose-core/Docs/config/epydoc.cfg

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)