Skip to content

Commit 752c0d2

Browse files
committed
Moved GNUInstallDirs inclusion after project to avoid using enable_language.
1 parent 2ea7510 commit 752c0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
cmake_minimum_required(VERSION 3.16)
22

33
# To Auto-determine the installation suffixes
4-
enable_language(C)
5-
include(GNUInstallDirs)
64

75
get_filename_component(LIBUSB_ROOT "libusb/libusb" ABSOLUTE)
86

@@ -26,6 +24,8 @@ if(EMSCRIPTEN)
2624
enable_language(CXX)
2725
endif()
2826

27+
include(GNUInstallDirs)
28+
2929
# This function generates all the local variables what end up getting written to config.
3030
# We use a function as any vars set in this context don't mess with the rest of the file.
3131
# e.g. Logging LIBUSB_ENABLE_LOGGING mapps to ENABLE_LOGGING in the config, keeps it clean

0 commit comments

Comments
 (0)