Skip to content

Commit f4f1a2b

Browse files
committed
CMake: Skip on Win GNUInstallDirs
Checking if this causes issues on Conda-Forge for Windows now... Somehow ``` GNUInstallDirs_get_absolute_install_dir(CMAKE_INSTALL_FULL_LIBDIR CMAKE_INSTALL_LIBDIR LIBDIR ) ``` might expand our relative `lib` for `CMAKE_INSTALL_LIBDIR` to `/<SRC>/lib`...?
1 parent 691a6d2 commit f4f1a2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/pyAMReXFunctions.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ endmacro()
7575
#
7676
macro(pyamrex_set_default_install_dirs)
7777
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
78-
include(GNUInstallDirs)
78+
if(NOT WIN32)
79+
include(GNUInstallDirs)
80+
endiF()
7981
if(NOT CMAKE_INSTALL_CMAKEDIR)
8082
set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake"
8183
CACHE PATH "CMake config package location for installed targets")

0 commit comments

Comments
 (0)