mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 17:33:15 +08:00
BUG: cmake_minimum_required must be the first command
https://cmake.org/cmake/help/v3.5/command/project.html Note: Call the cmake_minimum_required() command at the beginning of the top-level CMakeLists.txt file even before calling the project() command. It is important to establish version and policy settings before invoking other commands whose behavior they may affect. See also policy CMP0000.
This commit is contained in:
parent
e5886457c8
commit
5b9bfc892a
@ -1,7 +1,8 @@
|
|||||||
project(Eigen3)
|
# cmake_minimum_require must be the first command of the file
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5.0)
|
cmake_minimum_required(VERSION 3.5.0)
|
||||||
|
|
||||||
|
project(Eigen3)
|
||||||
|
|
||||||
# guard against in-source builds
|
# guard against in-source builds
|
||||||
|
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||||
@ -667,4 +668,4 @@ add_custom_target ( uninstall
|
|||||||
|
|
||||||
if (EIGEN_SPLIT_TESTSUITE)
|
if (EIGEN_SPLIT_TESTSUITE)
|
||||||
ei_split_testsuite("${EIGEN_SPLIT_TESTSUITE}")
|
ei_split_testsuite("${EIGEN_SPLIT_TESTSUITE}")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user