Skip to content

Commit 85955ec

Browse files
committed
One other go at adding -lstdc++
1 parent 81cc0a6 commit 85955ec

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ if (WIN32)
4242
set(SOURCE_FILES ${SOURCE_FILES}
4343
src/webview/win32_wv2.cpp
4444
)
45-
#if ("${CMAKE_CXX_COMPILER}" STREQUAL "GNU")
46-
message("Adding stdc++ as library")
47-
target_link_libraries(webui stdc++)
48-
#else()
49-
# message("Not a windows GNU target")
50-
#endif()
5145
endif()
5246

5347
if (APPLE)
@@ -76,6 +70,14 @@ endif()
7670

7771
if (WIN32)
7872
target_link_libraries(webui PRIVATE ws2_32 user32 shell32 ole32)
73+
74+
#if ("${CMAKE_CXX_COMPILER}" STREQUAL "GNU")
75+
message("Adding stdc++ as library")
76+
target_link_libraries(webui stdc++)
77+
#else()
78+
# message("Not a windows GNU target")
79+
#endif()
80+
7981
elseif (APPLE)
8082
# link required frameworks
8183
find_library(COCOA_FRAMEWORK Cocoa REQUIRED)

0 commit comments

Comments
 (0)