comparison cmake/FindD.cmake @ 384:d2f48c4cb3e3

Same behavior of shared libs on linux and windows. Minor build script fixes.
author Max Samukha <maxter@spambox.com>
date Fri, 16 Jul 2010 20:04:29 +0300
parents 185df9220ea7
children 827147052d8d e67ce7c21758
comparison
equal deleted inserted replaced
383:bd7f485e3573 384:d2f48c4cb3e3
137 ## set(path c:/file_path/file_name.cpp) 137 ## set(path c:/file_path/file_name.cpp)
138 ## make_native_path(path) 138 ## make_native_path(path)
139 ## message(STATUS ${path}) 139 ## message(STATUS ${path})
140 ## Output: 140 ## Output:
141 ## -- "c:\file_path\file_name.cpp" 141 ## -- "c:\file_path\file_name.cpp"
142 ## Command "file(TO_NATIVE_PATH ...)" is wrong on Windows 142 ## Command "file(TO_NATIVE_PATH ...)" gives incorrect results on Windows
143 macro(make_native_path pathname) 143 macro(make_native_path pathname)
144 if(CMAKE_HOST_WIN32) 144 if(CMAKE_HOST_WIN32)
145 # An extra \\ escape is necessary to get a \ through CMake's processing. 145 # An extra \\ escape is necessary to get a \ through CMake's processing.
146 string(REPLACE "/" "\\" ${pathname} "${${pathname}}") 146 string(REPLACE "/" "\\" ${pathname} "${${pathname}}")
147 # Enclose with UNESCAPED quotes. This means we need to escape our 147 # Enclose with UNESCAPED quotes. This means we need to escape our