Skip to content

Commit

Permalink
disable auto compilation unit for auto-targets:
Browse files Browse the repository at this point in the history
- disabled auto compilation unit for GoogleTest auto-target
- disabled auto compilation unit for GoogleBench auto-target

These targets were picking up root directory src/ and include/ folder, which is unintended. This patch fixes that.

Signed-off-by: Mustafa Kemal Gilor <[email protected]>
  • Loading branch information
xmkg committed Mar 12, 2023
1 parent 7d0447f commit bd2543a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/toolconf/GoogleBenchmark.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if(${HDK_ROOT_PROJECT_NAME_UPPER}_TOOLCONF_USE_GOOGLE_BENCH)
NAME ${HDK_ROOT_PROJECT_NAME}.hadouken_autotargets.benchmark
TYPE STATIC SOURCES ${HDK_ROOT_PROJECT_SOURCE_DIR}/.hadouken/cmake/modules/toolconf/GoogleBenchmark.cpp
LINK PUBLIC benchmark::benchmark
NO_AUTO_COMPILATION_UNIT
)
hdk_log_debug("Auto-created `${HDK_ROOT_PROJECT_NAME}.hadouken_autotargets.benchmark` target")

Expand Down
1 change: 1 addition & 0 deletions cmake/modules/toolconf/GoogleTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if(${HDK_ROOT_PROJECT_NAME_UPPER}_TOOLCONF_USE_GOOGLE_TEST)
NAME ${HDK_ROOT_PROJECT_NAME}.hadouken_autotargets.test
TYPE STATIC SOURCES ${HDK_ROOT_PROJECT_SOURCE_DIR}/.hadouken/cmake/modules/toolconf/GoogleTest.cpp
LINK PUBLIC GTest::GTest
NO_AUTO_COMPILATION_UNIT
)
hdk_log_debug("Auto-created `${HDK_ROOT_PROJECT_NAME}.hadouken_autotargets.test` target")
hdk_log_unindent(1)
Expand Down

0 comments on commit bd2543a

Please sign in to comment.