nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git i/CMakeLists.txt w/CMakeLists.txt
2index bb12a7cf5..932187427 100644
3--- i/CMakeLists.txt
4+++ w/CMakeLists.txt
5@@ -1,5 +1,5 @@
6 project(Eigen)
7-cmake_minimum_required(VERSION 2.6.2)
8+cmake_minimum_required(VERSION 3.10)
9
10 set(INCLUDE_INSTALL_DIR
11 "${CMAKE_INSTALL_PREFIX}/include/eigen2"
12diff --git i/doc/examples/CMakeLists.txt w/doc/examples/CMakeLists.txt
13index 9db5b1f58..b535ae80e 100644
14--- i/doc/examples/CMakeLists.txt
15+++ w/doc/examples/CMakeLists.txt
16@@ -8,12 +8,10 @@ ADD_EXECUTABLE(${example} ${example_src})
17 if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
18 target_link_libraries(${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
19 endif()
20-GET_TARGET_PROPERTY(example_executable
21- ${example} LOCATION)
22 ADD_CUSTOM_COMMAND(
23 TARGET ${example}
24 POST_BUILD
25- COMMAND ${example_executable}
26+ COMMAND ${example}
27 ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
28 )
29 ADD_DEPENDENCIES(all_examples ${example})
30diff --git i/doc/snippets/CMakeLists.txt w/doc/snippets/CMakeLists.txt
31index 7458830b0..153dbfc68 100644
32--- i/doc/snippets/CMakeLists.txt
33+++ w/doc/snippets/CMakeLists.txt
34@@ -14,12 +14,10 @@ ADD_EXECUTABLE(${compile_snippet_target}
35 if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
36 target_link_libraries(${compile_snippet_target} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
37 endif()
38-GET_TARGET_PROPERTY(compile_snippet_executable
39- ${compile_snippet_target} LOCATION)
40 ADD_CUSTOM_COMMAND(
41 TARGET ${compile_snippet_target}
42 POST_BUILD
43- COMMAND ${compile_snippet_executable}
44+ COMMAND ${compile_snippet_target}
45 ARGS >${CMAKE_CURRENT_BINARY_DIR}/${snippet}.out
46 )
47 ADD_DEPENDENCIES(all_snippets ${compile_snippet_target})