Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMake - syntax error ? Pin
leon de boer16-Nov-16 18:10
leon de boer16-Nov-16 18:10 
GeneralRe: CMake - syntax error ? Pin
Jochen Arndt16-Nov-16 21:07
professionalJochen Arndt16-Nov-16 21:07 
QuestionSOLVED CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 4:19
Vaclav_14-Nov-16 4:19 
AnswerRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 4:25
professionalChris Losinger14-Nov-16 4:25 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 4:32
Vaclav_14-Nov-16 4:32 
GeneralRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 4:46
professionalChris Losinger14-Nov-16 4:46 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 5:10
Vaclav_14-Nov-16 5:10 
AnswerRe: CMake whose "source directory" ? Pin
Albert Holguin15-Nov-16 7:22
professionalAlbert Holguin15-Nov-16 7:22 
CMake expects you to run it "out of the source tree"... meaning that you run it from some "build" directory where all the build binaries will be stored. That keeps the source separate from any build artifacts. It's warning you that you're building from within your source directory.

In simple terms... if you have a source tree that looks like this:
OpenCV
|-directory1
|-directory2
|-directory3
|-source_file1
|-source_file2
|-CMakeLists.txt

When you run the CMake command, it should be from a separate, self contained directory:
OpenCV
|-build_dir
|-directory1
|-directory2
|-directory3
|-source_file1
|-source_file2
|-CMakeLists.txt

That keep all the build artifacts in "build_dir" so if you need to blow away your build, it's easy to do so without messing with the source. In this case, to launch cmake, go into your build_dir and launch with cmake ../ -DANYOTHERCMAKEARGS .
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_15-Nov-16 9:27
Vaclav_15-Nov-16 9:27 
AnswerRe: CMake whose "source directory" ? Pin
Vaclav_17-Nov-16 5:11
Vaclav_17-Nov-16 5:11 
QuestionEclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 4:40
Vaclav_13-Nov-16 4:40 
AnswerRe: Eclipse IDE GCC linker options ? Pin
NotPolitcallyCorrect13-Nov-16 7:00
NotPolitcallyCorrect13-Nov-16 7:00 
AnswerRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 15:17
leon de boer13-Nov-16 15:17 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 16:42
Vaclav_13-Nov-16 16:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan13-Nov-16 21:42
mveRichard MacCutchan13-Nov-16 21:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt13-Nov-16 21:49
professionalJochen Arndt13-Nov-16 21:49 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 22:35
leon de boer13-Nov-16 22:35 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 4:31
Vaclav_14-Nov-16 4:31 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 5:08
Vaclav_14-Nov-16 5:08 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer14-Nov-16 5:40
leon de boer14-Nov-16 5:40 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 7:24
Vaclav_14-Nov-16 7:24 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer14-Nov-16 14:43
leon de boer14-Nov-16 14:43 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan14-Nov-16 6:01
mveRichard MacCutchan14-Nov-16 6:01 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt14-Nov-16 10:33
professionalJochen Arndt14-Nov-16 10:33 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 13:16
Vaclav_14-Nov-16 13:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.