Skip to content

Commit

Permalink
Build src/core/xtests only if BUILD_TESTING
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Boasson <[email protected]>
  • Loading branch information
eboasson committed Apr 9, 2021
1 parent f9c5b3a commit 586a729
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ install(
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT lib
)

if(BUILD_IDLC)
if(BUILD_TESTING AND BUILD_IDLC)
add_subdirectory(xtests)
endif()

Expand Down
1 change: 1 addition & 0 deletions src/core/xtests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
#
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#
include(CUnit)
add_subdirectory(rhc_torture)
add_subdirectory(initsampledeliv)
1 change: 0 additions & 1 deletion src/core/xtests/rhc_torture/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#
idlc_generate(TARGET RhcTypes FILES RhcTypes.idl)
include(${CMAKE_CURRENT_LIST_DIR}/../../../../cmake/Modules/CUnit.cmake)

add_executable(rhc_torture rhc_torture.c)

Expand Down

0 comments on commit 586a729

Please sign in to comment.