Skip to content

Commit

Permalink
Merge pull request thestk#284 from Carbon225/fix-cmake-include
Browse files Browse the repository at this point in the history
[cmake] Fix use of GNUInstallDirs
  • Loading branch information
garyscavone authored Feb 20, 2022
2 parents efce215 + 70149df commit a26ff93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ set_target_properties(rtmidi PROPERTIES
SOVERSION ${SO_VER}
VERSION ${FULL_VER})

# Set standard installation directories.
include(GNUInstallDirs)

# Set include paths, populate target interface.
target_include_directories(rtmidi PRIVATE ${INCDIRS}
PUBLIC
Expand All @@ -199,9 +202,6 @@ target_compile_definitions(rtmidi PRIVATE RTMIDI_EXPORT)
target_link_libraries(rtmidi PUBLIC ${PUBLICLINKLIBS}
PRIVATE ${LINKLIBS})

# Set standard installation directories.
include(GNUInstallDirs)

# Add tests if requested.
option(RTMIDI_BUILD_TESTING "Build test programs" ON)
if (NOT DEFINED RTMIDI_BUILD_TESTING OR RTMIDI_BUILD_TESTING STREQUAL "")
Expand Down

0 comments on commit a26ff93

Please sign in to comment.