Skip to content

Commit

Permalink
Merge pull request #13 from katyhuff/gtest_fix
Browse files Browse the repository at this point in the history
fixes #12 on @katyhuff's computer.
  • Loading branch information
katyhuff committed Jun 1, 2014
2 parents d4d96f0 + 1c9ec8f commit 1a03351
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cmake/FindCyclus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@ FIND_PATH(CYCLUS_CORE_TEST_INCLUDE_DIR agent_tests.h
/usr/local/cyclus /opt/local/cyclus
PATH_SUFFIXES cyclus/include include include/cyclus include/cyclus/tests cyclus/include/tests)

SET(
CYCLUS_CORE_TEST_INCLUDE_DIR ${CYCLUS_CORE_TEST_INCLUDE_DIR}
${CYCLUS_CORE_TEST_INCLUDE_DIR}/../gtest
)
# find the directory containing gtest
FIND_PATH(CYCLUS_GTEST_INCLUDE_DIR gtest/gtest.h
HINTS "${CYCLUS_ROOT_DIR}" "${CYCLUS_ROOT_DIR}"
"${CYCLUS_ROOT_DIR}/include"
"${CYCLUS_ROOT_DIR}/include/cyclus"
/usr/local/cyclus /opt/local/cyclus
PATH_SUFFIXES cyclus/include include include/cyclus)

SET(CYCLUS_CORE_TEST_INCLUDE_DIR ${CYCLUS_CORE_TEST_INCLUDE_DIR}
${CYCLUS_GTEST_INCLUDE_DIR})

# Add the root dir to the hints
SET(CYCLUS_ROOT_DIR "${CYCLUS_CORE_INCLUDE_DIR}/../..")
Expand Down

0 comments on commit 1a03351

Please sign in to comment.