Skip to content

Commit 4c770e7

Browse files
committed
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
1 parent 47b42e0 commit 4c770e7

6 files changed

+0
-12
lines changed

cmake/JSONParser.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3535
# SOFTWARE.
3636

37-
cmake_minimum_required(VERSION 2.8)
38-
3937
if (DEFINED JSonParserGuard)
4038
return()
4139
endif()

cmake/http-parser.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
16-
1715
if("${TARGET_OS}" MATCHES "NUTTX|TIZENRT")
1816
set(HTTPPARSER_NUTTX_ARG -DNUTTX_HOME=${TARGET_SYSTEMROOT})
1917
endif()

cmake/iotjs.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
16-
1715
if(NOT DEFINED PYTHON)
1816
set(PYTHON "python")
1917
endif()

cmake/jerry.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
16-
1715
# Host jerry for snapshot generation
1816
set(DEPS_HOST_JERRY deps/jerry-host)
1917
ExternalProject_Add(hostjerry

cmake/libtuv.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
16-
1715
# Configure external libtuv
1816
set(DEPS_TUV deps/libtuv)
1917
set(DEPS_TUV_SRC ${ROOT_DIR}/${DEPS_TUV})

cmake/mbedtls.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
cmake_minimum_required(VERSION 2.8)
16-
1715
set(MODULE_NAME "tls")
1816

1917
if ("${TARGET_OS}" STREQUAL "TIZENRT")

0 commit comments

Comments
 (0)