Click here to Skip to main content
15,850,265 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMake - syntax error ? Pin
leon de boer16-Nov-16 19:10
leon de boer16-Nov-16 19:10 
GeneralRe: CMake - syntax error ? Pin
Jochen Arndt16-Nov-16 22:07
professionalJochen Arndt16-Nov-16 22:07 
QuestionSOLVED CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 5:19
Vaclav_14-Nov-16 5:19 
AnswerRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 5:25
professionalChris Losinger14-Nov-16 5:25 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 5:32
Vaclav_14-Nov-16 5:32 
GeneralRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 5:46
professionalChris Losinger14-Nov-16 5:46 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 6:10
Vaclav_14-Nov-16 6:10 
AnswerRe: CMake whose "source directory" ? Pin
Albert Holguin15-Nov-16 8:22
professionalAlbert Holguin15-Nov-16 8: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 10:27
Vaclav_15-Nov-16 10:27 
AnswerRe: CMake whose "source directory" ? Pin
Vaclav_17-Nov-16 6:11
Vaclav_17-Nov-16 6:11 
QuestionEclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 5:40
Vaclav_13-Nov-16 5:40 
AnswerRe: Eclipse IDE GCC linker options ? Pin
NotPolitcallyCorrect13-Nov-16 8:00
NotPolitcallyCorrect13-Nov-16 8:00 
AnswerRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 16:17
leon de boer13-Nov-16 16:17 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 17:42
Vaclav_13-Nov-16 17:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan13-Nov-16 22:42
mveRichard MacCutchan13-Nov-16 22:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt13-Nov-16 22:49
professionalJochen Arndt13-Nov-16 22:49 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 23:35
leon de boer13-Nov-16 23:35 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 5:31
Vaclav_14-Nov-16 5:31 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 6:08
Vaclav_14-Nov-16 6:08 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer14-Nov-16 6:40
leon de boer14-Nov-16 6:40 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 8:24
Vaclav_14-Nov-16 8:24 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer14-Nov-16 15:43
leon de boer14-Nov-16 15:43 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan14-Nov-16 7:01
mveRichard MacCutchan14-Nov-16 7:01 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt14-Nov-16 11:33
professionalJochen Arndt14-Nov-16 11:33 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 14:16
Vaclav_14-Nov-16 14: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.