Skip to content

Commit

Permalink
move GNUInstallDirs include
Browse files Browse the repository at this point in the history
  • Loading branch information
EmbersArc committed Sep 12, 2020
1 parent 3d2f48b commit baf3af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -92,6 +92,8 @@ if(NOT MSVC)
target_link_libraries(ecos PRIVATE m)
endif()

include(GNUInstallDirs)

target_include_directories(ecos
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
Expand All @@ -102,8 +104,6 @@ target_include_directories(ecos
)

# Installation
include(GNUInstallDirs)

install(TARGETS ecos
EXPORT ${PROJECT_NAME}
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
Expand Down

0 comments on commit baf3af6

Please sign in to comment.