Skip to content

Commit 735f118

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

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
cmake_minimum_required(VERSION 3.16)
22

3-
# To Auto-determine the installation suffixes
4-
enable_language(C)
5-
include(GNUInstallDirs)
6-
73
get_filename_component(LIBUSB_ROOT "libusb/libusb" ABSOLUTE)
84

95
# Get the version information from version.h ignoring the nano version as it appears in version_nano.h and so we need it?
@@ -26,6 +22,9 @@ if(EMSCRIPTEN)
2622
enable_language(CXX)
2723
endif()
2824

25+
# To Auto-determine the installation suffixes
26+
include(GNUInstallDirs)
27+
2928
# This function generates all the local variables what end up getting written to config.
3029
# We use a function as any vars set in this context don't mess with the rest of the file.
3130
# e.g. Logging LIBUSB_ENABLE_LOGGING mapps to ENABLE_LOGGING in the config, keeps it clean

0 commit comments

Comments
 (0)