VERY experimental Nintendo Switch 2 emulator
C++
CMake: Add cryptopp include path to target property
Yuri Kunde Schlesnerdfd2db3e37be
diff --git a/externals/cryptopp/CMakeLists.txt b/externals/cryptopp/CMakeLists.txtindex 653af1e4b8..864de18bb3 100644--- a/externals/cryptopp/CMakeLists.txt+++ b/externals/cryptopp/CMakeLists.txt@@ -10,6 +10,7 @@# - disabled installation# - disabled documentation# - configured to build a static library only+# - adds include directories to the library targetinclude(TestBigEndian)include(CheckCXXCompilerFlag)@@ -148,14 +149,15 @@ endif()# Compile targets#============================================================================add_library(cryptopp STATIC ${cryptopp_SOURCES})+target_include_directories(cryptopp INTERFACE .)#============================================================================# Third-party libraries#============================================================================if(WIN32)- target_link_libraries(cryptopp ws2_32)+ target_link_libraries(cryptopp PRIVATE ws2_32)endif()find_package(Threads)-target_link_libraries(cryptopp ${CMAKE_THREAD_LIBS_INIT})+target_link_libraries(cryptopp PRIVATE ${CMAKE_THREAD_LIBS_INIT})diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex acc261e314..31152abd56 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -375,7 +375,6 @@ set(HEADERS)include_directories(../../externals/dynarmic/include)-include_directories(../../externals/cryptopp)create_directory_groups(${SRCS} ${HEADERS})