mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
cmake: Adds some missing STATIC qualifiers
Noticed this as I was scrolling through some cmake. Usually this doesn't matter as we declare `BUILD_SHARED_LIBS` as False/Off, but this can technically be overridden even when we don't want to. Updates the two definitions of `add_library` that was missing the static qualifier to ensure they generate the code we want.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
set(NAME tiny-json)
|
||||
set(SRCS tiny-json.c)
|
||||
add_library(${NAME} ${SRCS})
|
||||
add_library(${NAME} STATIC ${SRCS})
|
||||
@@ -11,7 +11,7 @@ if (NOT CLANG_RESOURCE_DIR)
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
endif()
|
||||
|
||||
add_library(thunkgenlib analysis.cpp data_layout.cpp gen.cpp)
|
||||
add_library(thunkgenlib STATIC analysis.cpp data_layout.cpp gen.cpp)
|
||||
target_include_directories(thunkgenlib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(thunkgenlib SYSTEM PUBLIC ${CLANG_INCLUDE_DIRS})
|
||||
target_link_libraries(thunkgenlib PUBLIC clang-cpp LLVM)
|
||||
|
||||
Reference in new issue
Block a user