Changeset 20

Show
Ignore:
Timestamp:
08/28/07 12:09:19 (1 year ago)
Author:
flithm
Message:

Final round of windows fixes -- almost fully working.

The problem is the dmd linker requires a trailing slash on the end for
link library paths, and cmake strips them. I've sent a message to the
cmake mailing list asking for help on this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cmaked/CMakeDInformation.cmake

    r19 r20  
    129129  SET(CMAKE_D_VERSION_FLAG "-version=") 
    130130  IF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 
     131    SET(CMAKE_INCLUDE_FLAG_D "-I")       # -I 
     132    SET(CMAKE_INCLUDE_FLAG_D_SEP "")     # , or empty 
    131133    SET(CMAKE_LINK_LIBRARY_FLAG "-L+") 
    132     SET(CMAKE_LIBRARY_PATH_FLAG "-I") 
     134    SET(CMAKE_LIBRARY_PATH_FLAG "-L+") 
    133135    FIND_PROGRAM(DMD_LIBRARIAN "lib.exe") 
    134136  ELSE(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 
     
    138140    SET(CMAKE_INCLUDE_FLAG_D_SEP "")     # , or empty 
    139141    SET(CMAKE_LIBRARY_PATH_FLAG "-L") 
    140     SET(CMAKE_LINK_LIBRARY_FLAG "-l") 
    141142  ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 
    142143ENDIF(CMAKE_COMPILER_IS_GDC)