Hi,
For example, I currently have both versions 2 and 3 of the GLFW library
installed on my Linux computer, named libglfw.so.2 and libglfw.so.3. Is
it possible to tell CMake to find a specific version of GLFW (say, version
3), and it would be smart enough to look for libglfw.so.3 or
a workaround? (Other than building from source)
On Sun, Jul 19, 2015 at 1:06 PM, Nils Gladitz nilsglad...@gmail.com wrote:
On 19.07.2015 08:38, Yaron Cohen-Tal wrote:
Hi,
For example, I currently have both versions 2 and 3 of the GLFW library
installed on my Linux computer, named libglfw.so.2
I want to set FOO to TRUE iff both COND_A and COND_B are true.I
tried the following:
set (FOO (${COND_A} AND ${COND_B}))
but then FOO get's a value like (;TRUE;AND;TRUE;) instead of TRUE. So I
had to write instead:
if (${COND_A} AND ${COND_B})
set (FOO TRUE)
else ()
set (FOO FALSE)
Hi,
My project is a shared library, and my tests are linked to that shared
library. When I try to run the tests, they fail because they can't find the
DLL of the project. The "CMakeLists.txt" of the tests is in a different
folder ("test/") than that of the shared lib ("src/"), and therefore
codelibre.net> wrote:
> On 02/09/2015 08:40, Yaron Cohen-Tal wrote:
>
>> Hi,
>>
>> My project is a shared library, and my tests are linked to that shared
>> library. When I try to run the tests, they fail because they can't find
>> the DLL of the project. The
Hi,
I'd like to build a C++ program and get its output during "cmake" run, not
during the project build. "CHECK_CXX_SOURCE_RUNS" only gives me the exit
code, but I need the output from the program. Anyway to do it?
Thanx,
Yaron
--
Powered by www.kitware.com
Please keep messages on-topic and
rg/cmake/help/latest/command/try_run.html
>
> Petr
>
> On 7 June 2016 at 09:15, Yaron Cohen-Tal <yaro...@gmail.com> wrote:
>
>> Hi,
>>
>> I'd like to build a C++ program and get its output during "cmake" run,
>> not during the project build.
Hi,
In FindLibXml2.cmake, the name of the variable "LIBXML2_DEFINITIONS" is
confusing coz it describes actually what should be added to the
"COMPILE_FLAGS" property, not "COMPILE_DEFINITIONS". I think it should b
renamed to "LIBXML2_COMPILE_FLAGS". If u wish, I can submit a patch.
Thanx,
Yaron
Ok, looking at other "FindXXX.cmake" modules I see that you're right, it
indeed always denotes what should be added to the "COMPILE_FLAGS" target
property, rather than "COMPILE_DEFINITIONS" property. I understand if u
don't want to rename it coz it'll break current usage, but just wanna note,
it's
e (or a file invoked by the config-module, usually
> generated with install(EXPORT...) )
>
> On Sun, Aug 21, 2016 at 4:23 PM, Yaron Cohen-Tal <yaro...@gmail.com>
> wrote:
>
>> Thanx!
>>
>> I think it would b nice though if the "target_XXX" comm
Thanx!
I think it would b nice though if the "target_XXX" commands would also work
for imported targets, e.g.. by adding the dependency to
"INTERFACE_LINK_LIBRARIES'. That way I sometimes can use the same command
without checking if the depentent is imported.
--
Powered by www.kitware.com
Hi,
Using ""target_link_libraries" between static libraries is allowed, however
doing it with static imported targets fails with:
"Cannot specify link libraries for target "" which is not
built by this project.
However, this is necessary in order to define dependencies between the
targets,
39 GMT+02:00 Yaron Cohen-Tal <yaro...@gmail.com>:
>
>> Hi,
>>
>> I try to make an imported target out of OpenGL, and I have some
>> difficulty. Usually "OPENGL_gl_LIBRARY" is a full path (found with
>> "find_library"), but sometimes (on Win
Hi,
I try to make an imported target out of OpenGL, and I have some difficulty.
Usually "OPENGL_gl_LIBRARY" is a full path (found with "find_library"), but
sometimes (on Windows) it's a pathless library (e.g. "opengl32", set with
the cmake command "set"). However an imported library requires the
14 matches
Mail list logo