Skip to content

Commit

Permalink
Merge pull request ALPSCore#637 from wistaria/cmake-cmp0115
Browse files Browse the repository at this point in the history
remove policy CMP0074 warning
  • Loading branch information
egull authored Nov 22, 2022
2 parents 41b02b0 + bd0b0f7 commit cae5f52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/cmake/ALPSEnableTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function(alps_add_gtest test)
"Usage: ${usage_help_}")
endif()

set(sources_ ${test} ${arg_SRCS})
set(sources_ ${test}.cpp ${arg_SRCS})

alps_build_gtest_(NOMAIN ${arg_NOMAIN} TARGET ${test} SRCS ${sources_})

Expand Down
4 changes: 2 additions & 2 deletions gf/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set (test_srcs


foreach(test ${test_srcs})
alps_add_gtest(${test} SRCS gf_test)
alps_add_gtest(${test} SRCS gf_test.cpp)
endforeach(test)

set (mpi_test_srcs
Expand All @@ -36,7 +36,7 @@ set (mpi_test_srcs

if (ALPS_HAVE_MPI)
foreach(test ${mpi_test_srcs})
alps_add_gtest(${test} NOMAIN PARTEST SRCS gf_test mpi_guard)
alps_add_gtest(${test} NOMAIN PARTEST SRCS gf_test.cpp mpi_guard.cpp)
endforeach(test)
endif()

4 changes: 2 additions & 2 deletions utilities/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if(ALPS_HAVE_MPI)
foreach(test ${test_src_mpi})
alps_add_gtest(${test} PARTEST NOMAIN)
endforeach(test)
alps_add_gtest(mpi_utils_env_exceptions1 PARTEST SRCS mpi_test_support)
alps_add_gtest(mpi_utils_env_exceptions2 PARTEST SRCS mpi_test_support)
alps_add_gtest(mpi_utils_env_exceptions1 PARTEST SRCS mpi_test_support.cpp)
alps_add_gtest(mpi_utils_env_exceptions2 PARTEST SRCS mpi_test_support.cpp)
endif()

# Testing "compilation failure test" machinery
Expand Down

0 comments on commit cae5f52

Please sign in to comment.