X-Git-Url: http://plrg.eecs.uci.edu/git/?p=junction.git;a=blobdiff_plain;f=cmake%2Fmodules%2FFindTurf.cmake;h=eef27498d200bd305196c7731c9ac260fbcc34e2;hp=2f97d4df703f964988f5c89c814b32b80ff199a4;hb=125c4e5e45715acb0444d77db7dfa384cbaff208;hpb=77d3fab30b70ba23f9ffdf681cfe57a1b2e2edc2;ds=sidebyside diff --git a/cmake/modules/FindTurf.cmake b/cmake/modules/FindTurf.cmake index 2f97d4d..eef2749 100644 --- a/cmake/modules/FindTurf.cmake +++ b/cmake/modules/FindTurf.cmake @@ -12,13 +12,13 @@ # You'll want to set the compiler options before calling AddTurfTarget(). #---------------------------------------------- -find_path(TURF_ROOT NAMES "CMakeLists.txt" "cmake/TurfProjectDefs.cmake" PATHS +find_path(TURF_ROOT "turf/Core.h" PATHS "${CMAKE_CURRENT_SOURCE_DIR}/../turf" "${CMAKE_SOURCE_DIR}/../turf" "${CMAKE_CURRENT_LIST_DIR}/../../../turf") if(TURF_ROOT) - include("${TURF_ROOT}/cmake/TurfProjectDefs.cmake") + set(TURF_FOUND TRUE) else() message("Can't find Turf!") if(Turf_FIND_REQUIRED)