mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 12:44:27 +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 )
|
if( BUILD_SHARED_LIBS )
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fPIC")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fPIC")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -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( )
|
endif( )
|
||||||
|
|
||||||
target_link_libraries( tz ${CMAKE_THREAD_LIBS_INIT} ${OPTIONAL_LIBRARIES} )
|
target_link_libraries( tz ${CMAKE_THREAD_LIBS_INIT} ${OPTIONAL_LIBRARIES} )
|
||||||
|
Reference in New Issue
Block a user