Skip to content

Solve the problem seen when using recent versions of CMake (such as 2.8....#1221

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
philippefoubert:branch_cmake_cmp0004
Aug 5, 2013
Merged

Solve the problem seen when using recent versions of CMake (such as 2.8....#1221
opencv-pushbot merged 1 commit intoopencv:masterfrom
philippefoubert:branch_cmake_cmp0004

Conversation

@philippefoubert
Copy link
Copy Markdown
Contributor

Solve the problem seen when using recent versions of CMake (such as 2.8.11): OpenCVConfig.cmake violates the policy CMP0004.

Symptoms:
CMake Error at CMakeLists.txt:10 (add_executable):
Target "my_app" links to item "C:/Program Files " which has leading
or trailing whitespace. This is now an error according to policy CMP0004.

This problem occurs when building on Windows when we depend on libraries located (for example) in "C:\Program Files (x86)..."

….8.11): OpenCVConfig.cmake violates the policy CMP0004.

Symptoms:
CMake Error at CMakeLists.txt:10 (add_executable):
Target "my_app" links to item "C:/Program Files " which has leading
or trailing whitespace. This is now an error according to policy CMP0004.

This problem occurs when building on Windows when we depend on libraries located (for example) in "C:\Program Files (x86)..."
@ghost ghost assigned apavlenko Aug 5, 2013
@apavlenko
Copy link
Copy Markdown
Contributor

👍

@opencv-pushbot opencv-pushbot merged commit ebd413c into opencv:master Aug 5, 2013
@philippefoubert philippefoubert deleted the branch_cmake_cmp0004 branch August 5, 2013 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants