From 1c0a7c3e093e5160429d20523cdd3cd1cee449c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Fri, 18 Oct 2024 13:49:42 +0200 Subject: [PATCH] fix(cmake): Include unix dir to add common path --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e42025c..37c33d92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -260,6 +260,10 @@ if ( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" ) else() set( SFCGAL_LIB_NAME "SFCGAL" ) endif() + +if ( UNIX ) + include(GNUInstallDirs) +endif() #set( SFCGAL_LIB_NAME ${${CMAKE_BUILD_TYPE} configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sfcgal-config.in ${CMAKE_CURRENT_BINARY_DIR}/sfcgal-config @ONLY) install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/sfcgal-config DESTINATION bin )