Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Fix for MinGW-w64
  • Loading branch information
brechtsanders authored Oct 15, 2022
1 parent 1aa14dd commit abaab3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ add_library(${PROJECT_NAME}_static STATIC ${libsrc})
set_target_properties(${PROJECT_NAME}_shared PROPERTIES DEFINE_SYMBOL SC_LITE_DLL)
if(WIN32)
target_link_libraries(${PROJECT_NAME}_shared Dwmapi)
install (FILES $<TARGET_PDB_FILE:${PROJECT_NAME}_shared> DESTINATION bin OPTIONAL)
if (!MINGW)
install (FILES $<TARGET_PDB_FILE:${PROJECT_NAME}_shared> DESTINATION bin OPTIONAL)
endif()
elseif(APPLE)
find_package(Threads REQUIRED)
find_library(corefoundation_lib CoreFoundation REQUIRED)
Expand Down Expand Up @@ -125,4 +127,4 @@ add_library(${PROJECT_NAME}_static STATIC ${libsrc})
${CMAKE_THREAD_LIBS_INIT}
)
endif()


0 comments on commit abaab3f

Please sign in to comment.