Skip to content

Commit 12deaa2

Browse files
committed
refactor(cmake): always install headers
1 parent 97793c7 commit 12deaa2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.11)
2-
project(function2 VERSION 4.2.0 LANGUAGES CXX)
2+
project(function2 VERSION 4.2.1 LANGUAGES CXX)
33

44
if (NOT FU2_IS_FIND_INCLUDED)
55
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}
@@ -36,15 +36,15 @@ target_compile_features(function2
3636
cxx_trailing_return_types
3737
cxx_return_type_deduction)
3838

39+
install(DIRECTORY "include/function2" TYPE INCLUDE)
40+
3941
if (FU2_IS_TOP_LEVEL_PROJECT)
4042
include(ExternalProject)
4143
include(GNUInstallDirs)
4244
include(CMakePackageConfigHelpers)
4345

4446
# Create an install target:
4547
# Headers and license files
46-
install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/function2"
47-
DESTINATION "include")
4848
install(FILES "LICENSE.txt" DESTINATION .)
4949
install(FILES "Readme.md" DESTINATION .)
5050

0 commit comments

Comments
 (0)