Skip to content

Commit

Permalink
Allow SEMSDevEnv.cmake to be read in with -C (#482)
Browse files Browse the repository at this point in the history
For those that like to use -C instead of -DTrilinos_CONFIGURE_OPTIONS_FILE now
you can read this in with -C.  But you will need to provide the entire path
and can't provide a relative path like with
-DTrilinos_CONFIGURE_OPTIONS_FILE:STIRNG=<rel-path>.
  • Loading branch information
bartlettroscoe committed Mar 13, 2018
1 parent 2cc01a3 commit 1188e55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmake/std/sems/SEMSDevEnv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
# Base options for all SEMS Dev Env bulids for Trilinos
#


# Handle this being passed in with -C option instead of
# <Project>_CONFIGURE_OPTIONS_FILE.
IF ("${PROJECT_NAME}" STREQUAL "")
SET(PROJECT_NAME Trilinos)
FUNCTION(ASSERT_DEFINED VARS)
FOREACH(VAR ${VARS})
IF(NOT DEFINED ${VAR})
MESSAGE(SEND_ERROR "Error, the variable ${VAR} is not defined!")
ENDIF()
ENDFOREACH()
ENDFUNCTION()
ENDIF()

#
# A) Define the compilers and basic env
#
Expand Down

0 comments on commit 1188e55

Please sign in to comment.