We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GNUInstallDirs
project
enable_language
1 parent 2ea7510 commit 752c0d2Copy full SHA for 752c0d2
CMakeLists.txt
@@ -1,8 +1,6 @@
1
cmake_minimum_required(VERSION 3.16)
2
3
# To Auto-determine the installation suffixes
4
-enable_language(C)
5
-include(GNUInstallDirs)
6
7
get_filename_component(LIBUSB_ROOT "libusb/libusb" ABSOLUTE)
8
@@ -26,6 +24,8 @@ if(EMSCRIPTEN)
26
24
enable_language(CXX)
27
25
endif()
28
+include(GNUInstallDirs)
+
29
# This function generates all the local variables what end up getting written to config.
30
# We use a function as any vars set in this context don't mess with the rest of the file.
31
# e.g. Logging LIBUSB_ENABLE_LOGGING mapps to ENABLE_LOGGING in the config, keeps it clean
0 commit comments