My brain was on airplane mode. I used a MSVC command option, not Clang, fixed.

This commit is contained in:
Michael J. Manley
2025-07-09 11:01:05 -07:00
parent ff5d7f0c13
commit 05af76af50

View File

@@ -77,6 +77,6 @@ add_executable(pcem ${PCEM_SRC} ${PCEM_PRIVATE_API} ${PCEM_EMBEDDED_PLUGIN_API})
target_compile_definitions(pcem PUBLIC ${PCEM_DEFINES})
target_compile_options(pcem PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fcommon> $<$<COMPILE_LANGUAGE:C>:-fcommon>)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
target_link_options(pcem PRIVATE "/SUBSYSTEM:WINDOWS")
target_link_options(pcem PRIVATE "-Wl,--subsystem,windows")
endif()
target_link_libraries(pcem ${PCEM_LIBRARIES})