[cmake-developers] [CMake 0014845]: invalid generated -I path for JNI includes on cygwin

Mantis Bug Tracker mantis at public.kitware.com
Thu Mar 27 08:52:02 EDT 2014


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                                    
======================================================================



More information about the cmake-developers mailing list