fixed: do not execute library unit tests with an in-tree ifem

This commit is contained in:
Arne Morten Kvarving
2015-12-15 14:43:49 +01:00
committed by Knut Morten Okstad
parent cfcf0fb06c
commit 6958acfed7
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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)