Skip to content

Commit

Permalink
Building as c++ module isn't compatible with building as DLL on Windo…
Browse files Browse the repository at this point in the history
…ws (it results in linking errors due to lacking dllimport)
  • Loading branch information
texus committed Dec 21, 2024
1 parent fd59d6a commit f81fd43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.28)
if(TGUI_CXX_STANDARD LESS 20)
message(FATAL_ERROR "TGUI_BUILD_AS_CXX_MODULE can only be turned on if TGUI_CXX_STANDARD is set to at least 20")
endif()
if(TGUI_OS_WINDOWS AND TGUI_SHARED_LIBS)
message(FATAL_ERROR "On Windows, BUILD_SHARED_LIBS must be OFF if TGUI_BUILD_AS_CXX_MODULE is ON")
endif()
endif()
endif()

Expand Down

0 comments on commit f81fd43

Please sign in to comment.