Changeset 2321

Show
Ignore:
Timestamp:
01/24/08 19:18:10 (12 months ago)
Author:
edmanm
Message:

r76@lysithea: edmanm | 2008-01-24 19:18:05 -0500
Patch for better MSVC support from notbobfischer. Thanks!

Location:
vidalia/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/CMakeLists.txt

    r2320 r2321  
    4545include(CPack) 
    4646 
     47if(MSVC_IDE) 
     48    # Supress regeneration 
     49    set(CMAKE_SUPPRESS_REGENERATION TRUE) 
     50    set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) 
     51    set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) 
     52endif(MSVC_IDE) 
     53   
    4754## Define Vidalia-specific CMake options 
    4855if (APPLE) 
  • vidalia/trunk/src/CMakeLists.txt

    r2201 r2321  
    4141endif(APPLE) 
    4242 
     43if(MSVC) 
     44  add_definitions(-D_USE_MATH_DEFINES=1) 
     45endif(MSVC) 
     46 
    4347## Add some Qt definitions 
    4448if (WIN32) 
  • vidalia/trunk/src/util/CMakeLists.txt

    r2236 r2321  
    5353 
    5454if(USE_QSSLSOCKET) 
    55   target_link_libraries(util crypto ssl) 
     55  target_link_libraries(util) 
     56  if(UNIX) 
     57    ## XXX: This is not quite right, since we still may need to link in 
     58    ##      OpenSSL libs on Windows as well, depending on how Qt was built. 
     59    ##      It suffices for the default Qt install on Windows though, until we 
     60    ##      gets some more complex CMake fu in. 
     61    target_link_libraries(crypto ssl) 
     62  endif(UNIX) 
    5663endif(USE_QSSLSOCKET) 
    5764