Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | Avoid CMAKE_MODULE_PATH being overwritten |
| 2 | |
| 3 | OE-Core's setting of CMAKE_MODULE_PATH stomps on MariaDB's value unless |
| 4 | we set it after setting the project name. |
| 5 | |
| 6 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
| 7 | |
| 8 | Upstream-Status: Inappropriate [working around OE-Core bug] |
| 9 | |
| 10 | --- mariadb/CMakeLists.txt 2014-07-17 11:01:07.676353047 +0100 |
| 11 | +++ mariadb/CMakeLists.txt 2014-07-17 11:01:31.299353107 +0100 |
| 12 | @@ -28,8 +28,6 @@ |
| 13 | |
| 14 | MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}") |
| 15 | |
| 16 | -SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) |
| 17 | - |
| 18 | # Distinguish between community and non-community builds, with the |
| 19 | # default being a community build. This does not impact the feature |
| 20 | # set that will be compiled in; it's merely provided as a hint to |
| 21 | @@ -77,6 +75,8 @@ |
| 22 | ENDIF() |
| 23 | PROJECT(${MYSQL_PROJECT_NAME}) |
| 24 | |
| 25 | +SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) |
| 26 | + |
| 27 | IF(BUILD_CONFIG) |
| 28 | INCLUDE( |
| 29 | ${CMAKE_SOURCE_DIR}/cmake/build_configurations/${BUILD_CONFIG}.cmake) |