diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dde5d7f..88869bf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ set(PLUGIN_VERSION "2.9.3") list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/lib/cmake-modules") +list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/lib/eigen/cmake") set(SAMP_SDK_ROOT "${PROJECT_SOURCE_DIR}/lib/samp-plugin-sdk") find_package(SAMPSDK REQUIRED) @@ -26,7 +27,6 @@ if(EIGEN3_INCLUDE_DIR) list(APPEND CMAKE_MODULE_PATH "${EIGEN3_INCLUDE_DIR}/cmake") else() set(EIGEN3_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/eigen") - list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/lib/eigen/cmake") endif() find_package(Eigen3 3.3.4 REQUIRED)