From baf3af6f3325a331baf895f34296a4df1fdd6af1 Mon Sep 17 00:00:00 2001 From: Sven Niederberger Date: Sat, 12 Sep 2020 17:47:05 +0200 Subject: [PATCH] move GNUInstallDirs include --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ff195f..3a0350b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,8 @@ if(NOT MSVC) target_link_libraries(ecos PRIVATE m) endif() +include(GNUInstallDirs) + target_include_directories(ecos PUBLIC "$" @@ -102,8 +104,6 @@ target_include_directories(ecos ) # Installation -include(GNUInstallDirs) - install(TARGETS ecos EXPORT ${PROJECT_NAME} ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"