File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ target_include_directories(juice-static PUBLIC
108108target_include_directories (juice-static  PRIVATE  ${CMAKE_CURRENT_SOURCE_DIR} /include /juice)
109109target_include_directories (juice-static  PRIVATE  ${CMAKE_CURRENT_SOURCE_DIR} /src)
110110target_compile_definitions (juice-static  PRIVATE  $<$<CONFIG:Release>:RELEASE=1>)
111- target_compile_definitions (juice-static  PUBLIC  JUICE_STATIC)
112111target_link_libraries (juice-static  PRIVATE  Threads::Threads)
113112
114113if (WIN32 )
@@ -185,7 +184,11 @@ install(FILES
185184
186185set_target_properties (juice PROPERTIES C_VISIBILITY_PRESET hidden)
187186target_compile_definitions (juice PRIVATE  JUICE_EXPORTS)
187+ if  (NOT  BUILD_SHARED_LIBS )
188+ 	target_compile_definitions (juice PUBLIC  JUICE_STATIC)
189+ endif ()
188190target_compile_definitions (juice-static  PRIVATE  JUICE_EXPORTS)
191+ target_compile_definitions (juice-static  PUBLIC  JUICE_STATIC)
189192
190193if (NOT  MSVC )
191194	target_compile_options (juice PRIVATE  -Wall -Wextra)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments