Skip to content

Commit 865bd54

Browse files
authored
Merge pull request #1783 from heinezen/fix/codegen_cmake
Rename `codegen` target to `cppgen`
2 parents 509ae86 + b671dde commit 865bd54

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ libopenage: $(BUILDDIR)
4545

4646
.PHONY: codegen
4747
codegen: $(BUILDDIR)
48-
$(MAKE) $(MAKEARGS) -C $(BUILDDIR) codegen
48+
$(MAKE) $(MAKEARGS) -C $(BUILDDIR) cppgen
49+
50+
.PHONY: cppgen
51+
cppgen: $(BUILDDIR)
52+
$(MAKE) $(MAKEARGS) -C $(BUILDDIR) cppgen
4953

5054
.PHONY: pxdgen
5155
pxdgen: $(BUILDDIR)

buildsystem/codegen.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2014-2019 the openage authors. See copying.md for legal info.
1+
# Copyright 2014-2025 the openage authors. See copying.md for legal info.
22

33
# set CODEGEN_SCU_FILE to the absolute path to SCU file
44
macro(get_codegen_scu_file)
@@ -52,7 +52,7 @@ function(codegen_run)
5252
COMMENT "openage.codegen: generating c++ code"
5353
)
5454

55-
add_custom_target(codegen
55+
add_custom_target(cppgen
5656
DEPENDS "${CODEGEN_TIMEFILE}"
5757
)
5858

libopenage/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2014-2019 the openage authors. See copying.md for legal info.
1+
# Copyright 2014-2025 the openage authors. See copying.md for legal info.
22

33
# main C++ library definitions.
44
# dependency and source file setup for the resulting library.
@@ -13,7 +13,7 @@ declare_binary(libopenage openage library allow_no_undefined)
1313
set_target_properties(libopenage PROPERTIES
1414
VERSION 0
1515
AUTOMOC ON
16-
AUTOGEN_TARGET_DEPENDS "codegen"
16+
AUTOGEN_TARGET_DEPENDS "cppgen"
1717
)
1818

1919
##################################################

0 commit comments

Comments
 (0)