[CMake] EXECUTABLE_OUTPUT_PATH vs RUNTIME_OUTPUT_DIRECTORY

pellegrini pellegrini at ill.fr
Fri Jul 22 10:01:55 EDT 2011


Michael Wild a écrit :
> On 07/22/2011 03:46 PM, pellegrini wrote:
>   
>> Hello everybody,
>>
>> I use CMake 2.8.4, Fortran 90 and Intel compiler to build an executable.
>> I read in the documentation that
>> RUNTIME_OUTPUT_DIRECTORY supercedes the old EXECUTABLE_OUTPUT_PATH command.
>>
>> When using:
>>
>>    add_executable(myexec ${source_files})
>>    set(EXECUTABLE_OUTPUT_PATH mydir)
>>
>> I can find my executable in mydir but when using
>>
>>    add_executable(myexec ${source_files})
>>    set(RUNTIME_OUTPUT_DIRECTORY mydir)
>>
>> nothing appears in mydir. Did I miss something when reading the doc ?
>>
>> I would have an additional question concerning both commands. Anytime I
>> build my project the following files are created alongside my executable:
>>
>>    - myexec.exe.embed.manifest
>>    - myexec.exe.embed.manifest.res
>>    - myexec.exe.intermediate.manifest
>>    - myexec.exe.resource.txt
>>    - myexec.ilk
>>
>> is there a way to get rid of these files ?
>>
>> thanks a lot
>>
>> Eric
>>
>>
>>     
>
> RUNTIME_OUTPUT_DIRECTORY is a *property*, not a variable. If you want to
> set a variable, use CMAKE_RUNTIME_OUTPUT_DIRECTORY.
>
> HTH
>
>   
Oups ! sorry.

Thanks for the hints Michael. That's OK, my executable is now created in 
the selected directory. Unfortunately, it does not come alone, there are 
still those manifest and ilk files ...


> Michael
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>   


-- 
Eric Pellegrini
Calcul Scientifique
Institut Laue-Langevin
Grenoble, France



More information about the CMake mailing list