Skip to content

Commit

Permalink
Including TribitsPackageMacros at base level
Browse files Browse the repository at this point in the history
This way you don't need to have a package include this CMake file.  This is
also a protection in that if someone accidentally tries to run CMkae configure
on a package directory, they will get errors.  Someone actually tried to do
this once.
  • Loading branch information
Roscoe A. Bartlett committed Feb 21, 2014
1 parent 8cfbbac commit 00e4179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion doc/examples/TribitsHelloWorld/hello_world/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
INCLUDE(TribitsPackageMacros)
TRIBITS_PACKAGE(HelloWorld)

TRIBITS_ADD_LIBRARY(hello_world_lib
Expand Down
2 changes: 2 additions & 0 deletions package_arch/TribitsGlobalMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,8 @@ MACRO(TRIBITS_CONFIGURE_ENABLED_PACKAGES)

SET(CONFIGURED_A_PACKAGE FALSE)
SET(ENABLED_PACKAGE_LIBS_TARGETS)

INCLUDE(TribitsPackageMacros)

SET(PACKAGE_IDX 0)
FOREACH(TRIBITS_PACKAGE ${${PROJECT_NAME}_PACKAGES})
Expand Down

0 comments on commit 00e4179

Please sign in to comment.