Skip to content

Commit 8b59383

Browse files
committed
try different name in variable
1 parent 920c68a commit 8b59383

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ elseif(UNITS_ENABLE_TESTS AND NOT CMAKE_VERSION VERSION_LESS 3.13)
218218
if(UNITS_BUILD_GTEST)
219219
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/ThirdParty/googletest/CMakeLists.txt")
220220
include(updateGitSubmodules)
221-
if(${PROJECT_NAME}_ENABLE_SUBMODULE_UPDATE)
221+
if(${UNITS_CMAKE_PROJECT_NAME}_ENABLE_SUBMODULE_UPDATE)
222222
submod_update(ThirdParty/googletest)
223223
else()
224224
include(FindPkgConfig)

config/AddGoogletest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
include(extraMacros)
1616

17-
if(${PROJECT_NAME}_BUILD_GTEST AND NOT GTest_FOUND)
17+
if(UNITS_BUILD_GTEST AND NOT GTest_FOUND)
1818

1919
set(CMAKE_WARN_DEPRECATED
2020
OFF

0 commit comments

Comments
 (0)