mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-01 11:44:26 +02:00
fixed shared library support
This commit is contained in:
committed by
Howard Hinnant
parent
5e57a19abe
commit
c56f915cc3
@@ -74,6 +74,9 @@ endif( )
|
||||
if( BUILD_SHARED_LIBS )
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fPIC")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fPIC")
|
||||
if( WIN32 )
|
||||
target_compile_definitions( tz PRIVATE -DDATE_BUILD_DLL=1 PUBLIC -DDATE_USE_DLL=1 )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
target_link_libraries( tz ${CMAKE_THREAD_LIBS_INIT} ${OPTIONAL_LIBRARIES} )
|
||||
|
Reference in New Issue
Block a user