Skip to content

Commit 954acf1

Browse files
committed
refactor: remove test_cmake dependency from main package
1 parent 3833ce4 commit 954acf1

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
file: build/ic_cmake.zip
3131
tag: ${{ github.ref }}
3232

33-
- name: Add fetch_test_cmake.cmake to release
33+
- name: Add fetch_ic_cmake.cmake to release
3434
uses: svenstaro/upload-release-action@v2
3535
with:
3636
repo_token: ${{ secrets.GITHUB_TOKEN }}

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
1414
set(package_files
1515
ic.cmake
1616
LICENSE
17-
dependencies/fetch_test_cmake.cmake
1817
src/ic_bundle.cmake
1918
src/ic_project.cmake
2019
src/ic_utils.cmake

ic.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
include_guard(GLOBAL)
77

8-
include(${CMAKE_CURRENT_LIST_DIR}/dependencies/fetch_test_cmake.cmake)
9-
108
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_bundle.cmake)
119
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_project.cmake)
1210
include(${CMAKE_CURRENT_LIST_DIR}/src/ic_utils.cmake)

src/ic_utils.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ macro(set_definition name value)
3737
FATAL_ERROR
3838
"Invalid arguments to set_definition(<name> <value> [PARENT_SCOPE]): (${name} ${value} ${ARGN})"
3939
)
40-
elseif(DEFINED name)
40+
endif()
41+
42+
if(DEFINED name)
4143
message(FATAL_ERROR "${name} is already defined!")
4244
endif()
4345

0 commit comments

Comments
 (0)