From 5affdb40ee462b6761b7df41ef9c95ee3d901cc4 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sun, 24 Jan 2021 01:39:00 -0800 Subject: [PATCH] There is no need specify cmake minimal version in .cmake files Also fixes building with cmake 3.x IoT.js-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com --- cmake/JSONParser.cmake | 2 -- cmake/http-parser.cmake | 2 -- cmake/iotjs.cmake | 2 -- cmake/jerry.cmake | 2 -- cmake/libtuv.cmake | 2 -- cmake/mbedtls.cmake | 2 -- 6 files changed, 12 deletions(-) diff --git a/cmake/JSONParser.cmake b/cmake/JSONParser.cmake index 747cd630c5..7806252a58 100644 --- a/cmake/JSONParser.cmake +++ b/cmake/JSONParser.cmake @@ -34,8 +34,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 2.8) - if (DEFINED JSonParserGuard) return() endif() diff --git a/cmake/http-parser.cmake b/cmake/http-parser.cmake index 83f25798a0..12fa939d21 100644 --- a/cmake/http-parser.cmake +++ b/cmake/http-parser.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - if("${TARGET_OS}" MATCHES "NUTTX|TIZENRT") set(HTTPPARSER_NUTTX_ARG -DNUTTX_HOME=${TARGET_SYSTEMROOT}) endif() diff --git a/cmake/iotjs.cmake b/cmake/iotjs.cmake index 2216f12e4c..2a9d1d33da 100644 --- a/cmake/iotjs.cmake +++ b/cmake/iotjs.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - if(NOT DEFINED PYTHON) set(PYTHON "python") endif() diff --git a/cmake/jerry.cmake b/cmake/jerry.cmake index ca4809b13a..17f2aa3e61 100644 --- a/cmake/jerry.cmake +++ b/cmake/jerry.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - # Host jerry for snapshot generation set(DEPS_HOST_JERRY deps/jerry-host) ExternalProject_Add(hostjerry diff --git a/cmake/libtuv.cmake b/cmake/libtuv.cmake index 1c4ab4c9f3..364c10b5f1 100644 --- a/cmake/libtuv.cmake +++ b/cmake/libtuv.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - # Configure external libtuv set(DEPS_TUV deps/libtuv) set(DEPS_TUV_SRC ${ROOT_DIR}/${DEPS_TUV}) diff --git a/cmake/mbedtls.cmake b/cmake/mbedtls.cmake index 0a8e841e89..67aef46a58 100644 --- a/cmake/mbedtls.cmake +++ b/cmake/mbedtls.cmake @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 2.8) - set(MODULE_NAME "tls") if ("${TARGET_OS}" STREQUAL "TIZENRT")