Skip to content

Commit 3e09184

Browse files
authored
Merge pull request #45 from bazfp/GNUInstallUtils
Move GNUInstallDirs include to before the target include directories
2 parents d414928 + c0d01bf commit 3e09184

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CMakeLists.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ project(eventpp VERSION 0.1.2)
44
add_library(eventpp INTERFACE)
55
set(CMAKE_CXX_STANDARD 11)
66

7-
if("${CMAKE_INSTALL_INCLUDEDIR}" STREQUAL "")
8-
set(CMAKE_INSTALL_INCLUDEDIR include)
9-
endif()
10-
7+
include(GNUInstallDirs)
118
target_include_directories(
129
eventpp INTERFACE
1310
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
@@ -25,7 +22,6 @@ endif()
2522

2623
# Installation
2724
# ------------
28-
include(GNUInstallDirs)
2925
if (POLICY CMP0077)
3026
# Allow CMake 3.13+ to override options when using add_subdirectory/FetchContent.
3127
cmake_policy(SET CMP0077 NEW)

0 commit comments

Comments
 (0)