 -add_subdirectory(interfaces/ampl EXCLUDE_FROM_ALL)
 +include(CTest)
 +if(BUILD_TESTING)
-+  #
-+  # we set the SCIP_DIR variable explicitly for the following examples/applications and unittests that depend on SCIP.
-+  #
-+  set(SCIP_DIR ${CMAKE_BINARY_DIR})
 +  #
 +  # add SCIP tests
 +  #

+  cmake_policy(SET CMP0077 NEW)
+endif()
+
 set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_DEBUG} ${CMAKE_C_FLAGS_RELEASE}")
 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS_RELEASE}")
 
@@ -88,6 +93,7 @@
 SET(COVERAGE_CTEST_ARGS "" CACHE STRING "additional ctest arguments for coverage")
 option(MT "use static runtime libraries for Visual Studio compiler" OFF)
 option(CXXONLY "use a c++ compiler for all source files" OFF)

 if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
     include(FeatureSummary)
     feature_summary(WHAT ALL)
diff --color -ru /tmp/scip-7.0.1/src/CMakeLists.txt ./src/CMakeLists.txt
--- /tmp/scip-7.0.1/src/CMakeLists.txt	2020-06-23 10:40:53.000000000 +0200
+++ ./src/CMakeLists.txt	2020-08-25 22:31:49.311219133 +0200
@@ -14,10 +14,10 @@
 
 #configure the scipbuildflags.c source file for the build tree
 configure_file(${PROJECT_SOURCE_DIR}/src/scipbuildflags.c.in
-  "${CMAKE_BINARY_DIR}/scipbuildflag.c" @ONLY)
+  "${PROJECT_BINARY_DIR}/scipbuildflag.c" @ONLY)
 
 set(scipsources
-    ${CMAKE_BINARY_DIR}/scipbuildflag.c
+  ${PROJECT_BINARY_DIR}/scipbuildflag.c
     blockmemshell/memory.c
     scip/message.c
     scip/bitencode.c
@@ -953,6 +953,7 @@
 setLibProperties(liblpi "lpi")
 
