Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Remove cmake submodule & replace with new CMX bootstrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneAlex committed Aug 19, 2023
1 parent 6b82b2c commit 380094f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 41 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "cmake"]
path = cmake
url = https://github.com/karmakrafts/cmake
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(kstd-platform LANGUAGES C CXX)
option(KSTD_PLATFORM_BUILD_TESTS "Build unit tests for kstd-platform" OFF)

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;")
include(cmx)
include(cmx-bootstrap)
cmx_include_scripts()

# Library
Expand Down
1 change: 0 additions & 1 deletion cmake
Submodule cmake deleted from e5700f
15 changes: 15 additions & 0 deletions cmake/cmx-bootstrap.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if (NOT CMX_INCLUDED)
include(FetchContent)
set(CMX_VERSION master)

FetchContent_Declare(
cmx
GIT_REPOSITORY https://github.com/karmakrafts/cmx.git
GIT_TAG ${CMX_VERSION}
)
FetchContent_MakeAvailable(cmx)
set(CMAKE_MODULE_PATH "${cmx_SOURCE_DIR};")
include(cmx)

set(CMX_INCLUDED ON)
endif ()# CMX_INCLUDED
36 changes: 0 additions & 36 deletions update_cmake

This file was deleted.

0 comments on commit 380094f

Please sign in to comment.