fixed: do not execute library unit tests with an in-tree ifem
This commit is contained in:
committed by
Knut Morten Okstad
parent
cfcf0fb06c
commit
6958acfed7
@@ -29,6 +29,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
||||
${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
|
||||
INCLUDE(Apps/Common/cmake/UseMultiArch.cmake)
|
||||
set(IFEM_LIBRARY_BUILD 1)
|
||||
|
||||
if(NOT IFEM_AS_SUBMODULE)
|
||||
FIND_PACKAGE(IFEMDeps)
|
||||
|
||||
@@ -40,7 +40,7 @@ macro(add_check_target)
|
||||
add_library(gtest IMPORTED ${GTEST_LIBRARIES})
|
||||
include_directories(${GTEST_INCLUDE_DIRS})
|
||||
endif()
|
||||
if(IFEM_AS_SUBMODULE OR NOT IFEM_COMMON_APP_BUILD)
|
||||
if(IFEM_AS_SUBMODULE OR IFEM_LIBRARY_BUILD)
|
||||
ifem_add_unittests(${IFEM_PATH})
|
||||
endif()
|
||||
if(NOT TARGET gtest)
|
||||
|
||||
Reference in New Issue
Block a user