• Vladislav Vaintroub's avatar
    Fix a problem reported by Alik: · 44084ea4
    Vladislav Vaintroub authored
    when cmake is used for building in a symlinked directory, 
    and confguration is later adjusted with "cmake-gui ." After it,
    GenServerSource fails with "no rule for <filename>". The reason
    for the error is that cmake-gui  resolves "." as realpath and rules
    are generated accordingly, while "cmake" used symlinked path
    
    The fix uses ${CMAKE_CURRENT_BINARY_DIR} instead of 
    ${CMAKE_BINARY_DIR}/sql  for generated files. 
    This causes CMake to use relative file names so 
    relative file names when generating make rules.
    Using relative filenames avoids the problem of 
    refering to the same directory using 2 different paths.
    
    Besides, using ${CMAKE_CURRENT_BINARY_DIR} is 
    a commonly used style when working with generated 
    files.
    44084ea4
CMakeLists.txt 10.5 KB