timur-losev / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

FindCg.cmake generating bad MinGW Makefiles #187

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Nvidia Cg to default location: Program Files (x86)/Cg
2. find_package, include_directories, target_link_libraries (CG and CGGL)
3. Generate Makefiles
4. Compile project

What is the expected output? What do you see instead?
Expecting a functioning compilation. Getting an error that "x86)/Nvidia 
Corporation/Cg/include/Cg/cg.h" does not exist. This issue is unique to Cg. Fix 
might be evident in CMake's packaged FindCUDA, but I'm not familiar enough to 
say so definitively.

What version of the product are you using? On what operating system?
FindCg.cmake r452
Windows 7 64bit, SP1
MinGW gcc 4.7.2

Please provide any additional information below.
A temporary work around is to install Cg to C:/Cg instead of C:/Program Files 
(x86)/Cg

Original issue reported on code.google.com by rishel.n...@gmail.com on 15 Mar 2013 at 10:38