Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is no need specify cmake minimal version in .cmake files
Browse files Browse the repository at this point in the history
Also fixes building with cmake 3.x

IoT.js-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
lygstate committed Jan 30, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 47b42e0 commit 4c770e7
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions cmake/JSONParser.cmake
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 0 additions & 2 deletions cmake/http-parser.cmake
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 0 additions & 2 deletions cmake/iotjs.cmake
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 0 additions & 2 deletions cmake/jerry.cmake
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions cmake/libtuv.cmake
Original file line number Diff line number Diff line change
@@ -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})
2 changes: 0 additions & 2 deletions cmake/mbedtls.cmake
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 4c770e7

Please sign in to comment.