MantisBT - CMake
View Issue Details
0014845CMakeCMakepublic2014-03-27 08:522016-06-10 14:31
FrancisANDRE 
Kitware Robot 
highmajoralways
closedmoved 
CYGWIN_NT-6.1 idefix 1.7.28(0.27
CMake 2.8.11.2 
 
0014845: invalid generated -I path for JNI includes on cygwin
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
Under cygwin, rnu cmake with this CMakeLists.txt

$ cat CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
FIND_PACKAGE(JNI REQUIRED)
No tags attached.
Issue History
2014-03-27 08:52FrancisANDRENew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042521
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042521)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.