Skip to content

Commit

Permalink
Pin boost Windows define to Windows platform only (#351)
Browse files Browse the repository at this point in the history
* Pin boost Windows define to Windows platform only

* Formatting

* Run pre-commit
  • Loading branch information
Twon authored Feb 9, 2025
1 parent 849e52e commit 79a664c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/core/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ add_subdirectory(morpheus/core)

target_compile_definitions(MorpheusCore
PUBLIC
# MORPHEUS_SHARED_BUILD=1
# MORPHEUS_DLL_EXPORTS=1
BOOST_USE_WINAPI_VERSION=BOOST_WINAPI_NTDDI_WIN10
$<$<PLATFORM_ID:Windows>:BOOST_USE_WINAPI_VERSION=BOOST_WINAPI_NTDDI_WIN10>
)

target_compile_options(MorpheusCore
PRIVATE
# -enable-hosted-libstdcxx
$<$<CXX_COMPILER_ID:MSVC>:/wd4251> # class 'foo' needs to have dll-interface to be used by clients of class 'bar'
$<$<CXX_COMPILER_ID:MSVC>:/wd4251> # class 'foo' needs to have dll-interface to be used by clients of class 'bar'
)
get_target_property(SOURCES_FILES MorpheusCore SOURCES)
source_group(TREE ${CMAKE_CURRENT_LIST_DIR} FILES ${SOURCES_FILES})
Expand Down

0 comments on commit 79a664c

Please sign in to comment.