The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14845 
====================================================================== 
Reported By:                FrancisANDRE
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14845
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2014-03-27 08:52 EDT
Last Modified:              2014-03-27 08:52 EDT
====================================================================== 
Summary:                    invalid generated -I path for JNI includes on cygwin
Description: 
Hi

Below is a copy of the generated flags which includes the path for the java JNI
headers. The "C:/Progra~1/Java/jdk1.7.0_51/include" is concatenated to the
previous path while it should be set as a standalone include path as

-I"C:/Progra~1/Java/jdk1.7.0_51/include"

# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8

# compile C with /usr/bin/cc
C_FLAGS = -I/usr/local/include
-I"/cygdrive/z/dev/llvm/x64/jllvm/src/org/jllvm/bindings/C:/Progra~1/Java/jdk1.7.0_51/include"
-I"/cygdrive/z/dev/llvm/x64/jllvm/src/org/jllvm/bindings/C:/Progra~1/Java/jdk1.7.0_51/include/win32"

C_DEFINES = -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Djllvm_EXPORTS


Steps to Reproduce: 
Under cygwin, rnu cmake with this CMakeLists.txt

$ cat CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
FIND_PACKAGE(JNI REQUIRED)

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-27 08:52 FrancisANDRE   New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to