Skip to content

Commit

Permalink
do not include config if target is already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dawid-aurobit committed May 30, 2015
1 parent 12ac8b7 commit dfbbfff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CppUTestConfig.cmake.build.in
@@ -1,7 +1,9 @@
@PACKAGE_INIT@

set_and_check(CppUTest_INCLUDE_DIRS "@PACKAGE_INCLUDE_DIR@")
include("${CMAKE_CURRENT_LIST_DIR}/CppUTestTargets.cmake" OPTIONAL)
if(NOT TARGET CppUTest)
include("${CMAKE_CURRENT_LIST_DIR}/CppUTestTargets.cmake")
endif()
set(CppUTest_LIBRARIES CppUTest CppUTestExt)

check_required_components(CppUTest)

0 comments on commit dfbbfff

Please sign in to comment.