Skip to content

Commit

Permalink
CMake fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyToGround committed May 12, 2020
1 parent daf1648 commit 59d3e6f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmake/Findconcurrentqueue.cmake
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
find_path(ConcurrentQueue_INCLUDE_DIR
find_path(concurrentqueue_INCLUDE_DIR
NAMES concurrentqueue/concurrentqueue.h
PATHS /usr/local/include/ /opt/local/include/
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ConcurrentQueue FOUND_VAR ConcurrentQueue_FOUND REQUIRED_VARS
ConcurrentQueue_INCLUDE_DIR
find_package_handle_standard_args(concurrentqueue FOUND_VAR concurrentqueue_FOUND REQUIRED_VARS
concurrentqueue_INCLUDE_DIR
)

mark_as_advanced(
ConcurrentQueue_INCLUDE_DIR
concurrentqueue_INCLUDE_DIR
)

if(ConcurrentQueue_FOUND)
set(ConcurrentQueue_INCLUDE_DIRS ${ConcurrentQueue_INCLUDE_DIR})
if(concurrentqueue_FOUND)
set(concurrentqueue_INCLUDE_DIRS ${concurrentqueue_INCLUDE_DIR})
endif()

if(ConcurrentQueue_FOUND AND NOT TARGET concurrentqueue::concurrentqueue)
if(concurrentqueue_FOUND AND NOT TARGET concurrentqueue::concurrentqueue)
add_library(concurrentqueue::concurrentqueue INTERFACE IMPORTED)
set_target_properties(concurrentqueue::concurrentqueue PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${ConcurrentQueue_INCLUDE_DIR}"
INTERFACE_INCLUDE_DIRECTORIES "${concurrentqueue_INCLUDE_DIR}"
)
endif()

0 comments on commit 59d3e6f

Please sign in to comment.