File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ See https://swift.org/LICENSE.txt for license information
99
1010cmake_minimum_required (VERSION 3.24)
1111
12+ # FIXME: The C language is enabled as `GNUInstallDirs` requires the language to
13+ # function properly. We must further enable the language in the initial set to
14+ # ensure that the correct linker is detected.
1215project (SwiftDocC
13- LANGUAGES Swift)
16+ LANGUAGES C Swift)
1417
1518set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
1619set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
@@ -20,7 +23,6 @@ set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
2023set (CMAKE_Swift_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
2124set (CMAKE_Swift_LANGUAGE_VERSION 5)
2225
23- enable_language (C)
2426include (GNUInstallDirs)
2527
2628# NOTE(compnerd) workaround CMake issues
You can’t perform that action at this time.
0 commit comments