Skip to content

Commit

Permalink
Don't use find_package() in CMakeLists.txt since it does not make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
Edison Gustavo Muenz committed Nov 17, 2016
1 parent 5f2f6e5 commit d242b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BackwardConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ foreach(def ${BACKWARD_DEFINITIONS})
message(STATUS "${def}")
endforeach()

find_path(BACKWARD_INCLUDE_DIR backward.hpp)
find_path(BACKWARD_INCLUDE_DIR backward.hpp PATHS ${CMAKE_CURRENT_LIST_DIR})
list(APPEND BACKWARD_INCLUDE_DIRS ${BACKWARD_INCLUDE_DIR})

include(FindPackageHandleStandardArgs)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
cmake_minimum_required(VERSION 2.8.12)
project(backward CXX)

find_package(Backward REQUIRED PATHS ${CMAKE_CURRENT_LIST_DIR})
include(BackwardConfig.cmake)

set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_STANDARD 11)
Expand Down

0 comments on commit d242b6d

Please sign in to comment.