Skip to content
Snippets Groups Projects
Commit ad5417ff authored by Eric Cano's avatar Eric Cano
Browse files

Added support for packaing in an incomplete environment (cmake is re-run...

Added support for packaing in an incomplete environment (cmake is re-run during rpm build, we need this in the first steps of packaging in TeamCity).
parent 11e89215
Branches
Tags
No related merge requests found
......@@ -48,8 +48,14 @@ set (CMAKE_CXX_FLAGS "-g3 -Wall -Werror -pedantic")
###########################################################################
# dependancies
###########################################################################
find_package(GTest REQUIRED)
IF(DEFINED SKIP_GTest)
MESSAGE("Skipping GTest. This is fine for a packaging.")
SET(GTEST_LIBRARY "")
SET(GTEST_INCLUDE_DIR "")
SET(GTEST_MAIN_LIBRARY "")
ELSE(DEFINED SKIP_GTest)
find_package(GTest REQUIRED)
ENDIF(DEFINED SKIP_GTest)
enable_testing()
set(CTEST_OUTPUT_ON_FAILURE 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment