Skip to content

Commit

Permalink
CMakeLists: Restrict response file check to complex+double+Cuda
Browse files Browse the repository at this point in the history
Addresses issue #148. The check for
CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS enabled is only necessary when
complex+double+Cuda with ETI occurs.
  • Loading branch information
ndellingwood committed Mar 14, 2018
1 parent 086ec01 commit 73239c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ TRIBITS_ADD_OPTION_AND_DEFINE(
LIST(APPEND DEVICE_LIST "<Cuda,CudaUVMSpace>")
ENDIF()

IF((NOT DEFINED CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS) OR (NOT CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS))
MESSAGE( FATAL_ERROR "The CMake option CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS is either undefined or OFF. Please set CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS:BOOL=ON when building with CUDA.")
IF( KokkosKernels_INST_DOUBLE AND Trilinos_ENABLE_COMPLEX_DOUBLE AND ((NOT DEFINED CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS) OR (NOT CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS)) )
MESSAGE( FATAL_ERROR "The CMake option CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS is either undefined or OFF. Please set CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS:BOOL=ON when building with CUDA and complex double enabled.")
ENDIF()

ENDIF()
Expand Down

0 comments on commit 73239c9

Please sign in to comment.