Skip to content

Commit debd9c4

Browse files
authored
Merge pull request #1 from fschloesser/compatibility-cmake-3.10
update CMakeLists.txt for cmake 3.10
2 parents 2dc3cf0 + 4beb0c6 commit debd9c4

File tree

1 file changed

+36
-17
lines changed

1 file changed

+36
-17
lines changed

CMakeLists.txt

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
cmake_minimum_required(VERSION 3.14)
1+
cmake_minimum_required(VERSION 3.10)
22

3-
project(
4-
Bliss
5-
VERSION 0.73.0
6-
LANGUAGES CXX C
7-
DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs"
8-
HOMEPAGE_URL "http://www.tcs.hut.fi/Software/bliss/"
9-
)
3+
if(${CMAKE_VERSION} VERSION_LESS "3.12")
4+
project(
5+
Bliss
6+
VERSION 0.73.1
7+
LANGUAGES CXX C
8+
DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs. http://www.tcs.hut.fi/Software/bliss/."
9+
)
10+
else()
11+
project(
12+
Bliss
13+
VERSION 0.73.1
14+
LANGUAGES CXX C
15+
DESCRIPTION "A Tool for Computing Automorphism Groups and Canonical Labelings of Graphs"
16+
HOMEPAGE_URL "http://www.tcs.hut.fi/Software/bliss/"
17+
)
18+
endif()
1019

1120
# Set the default build type to the given value if no build type was specified
1221
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
@@ -63,17 +72,27 @@ target_link_libraries(bliss PRIVATE libbliss)
6372
install(
6473
TARGETS libbliss bliss
6574
EXPORT Bliss
75+
RUNTIME DESTINATION bin
76+
LIBRARY DESTINATION lib
77+
ARCHIVE DESTINATION lib
6678
)
6779

68-
install(
69-
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/bliss"
70-
TYPE INCLUDE
71-
COMPONENT lib
72-
)
80+
if(${CMAKE_VERSION} VERSION_LESS "3.14")
81+
install(
82+
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/bliss"
83+
DESTINATION include
84+
COMPONENT lib
85+
)
86+
else()
87+
install(
88+
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/bliss"
89+
TYPE INCLUDE
90+
COMPONENT lib
91+
)
92+
endif()
7393

74-
install(
75-
EXPORT Bliss
76-
FILE BlissConfig.cmake
77-
NAMESPACE Bliss::
94+
install(EXPORT Bliss
7895
DESTINATION lib/cmake/Bliss
96+
NAMESPACE Bliss::
97+
FILE BlissConfig.cmake
7998
)

0 commit comments

Comments
 (0)