[cmake-developers] [CMake 0014184]: link_directories produce backslash path for mingw

Mantis Bug Tracker mantis at public.kitware.com
Sat Jun 1 03:43:32 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14184 
====================================================================== 
Reported By:                steve.k.chiu
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14184
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-06-01 03:43 EDT
Last Modified:              2013-06-01 03:43 EDT
====================================================================== 
Summary:                    link_directories produce backslash path for mingw
Description: 
The link_directories command produce backslash path which does not work in the
mingw+ninja environment. All the others path (e.g. include path) are
forward-slash, it seems the link_directories path has been forgotten.

Steps to Reproduce: 
1. add the link_directories command to the CMakeLists.txt
2. use Ninja generator and MinGW compiler (from mingw64 project)
3. the gcc compiler complain can not find the specified library (for ex.
c:/qt/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lraw_r)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-06-01 03:43 steve.k.chiu   New Issue                                    
======================================================================




More information about the cmake-developers mailing list