Skip to content

Commit

Permalink
Disable CMake install rule if robin_map is used as subproject (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessil authored Dec 18, 2022
1 parent 57c9b65 commit 6775231
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ endif()



set(IS_SUBPROJECT TRUE)
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
set(IS_SUBPROJECT FALSE)
endif()

# Installation (only compatible with CMake version >= 3.3)
if(${CMAKE_VERSION} VERSION_GREATER "3.2")
if(NOT IS_SUBPROJECT AND ${CMAKE_VERSION} VERSION_GREATER "3.2")
include(CMakePackageConfigHelpers)

## Install include directory and potential natvis file
Expand Down

0 comments on commit 6775231

Please sign in to comment.