[CMake] CUDA aarch64 cross compile fails to validate nvcc

2020-02-07 Thread Dustyn Blasig
Hi All, I'm not sure if people are more active on here or Discourse right now, so I'm cross-posting. Please reply on the Discourse thread if possible, but I'll take whatever I can get : ) https://discourse.cmake.org/t/cuda-aarch64-cross-compile-fails-to-validate-nvcc/593 I am stuck trying to

[CMake] Visual Studio Intellisense Integration

2019-10-09 Thread Dustyn Blasig
Hi All, We are trying to clean up our Visual Studio flow with CMake. However, we are running into an issue with Intellisense not finding header files properly if we use target_include_directories(). For instance, given the simple example below, if we add the "global" include_directories() call

Re: [CMake] Use interface libraries for providing compile options and definitions

2019-10-04 Thread Dustyn Blasig
Scott wrote: > > > On Fri, Oct 4, 2019 at 2:27 AM Dustyn Blasig wrote: > >> Hi All, >> >> I have been cleaning up our legacy CMake to use newer features (available >> in 3.12+) including trying to use target_...() functions nearly >> exclusively. As p

[CMake] Use interface libraries for providing compile options and definitions

2019-10-03 Thread Dustyn Blasig
Hi All, I have been cleaning up our legacy CMake to use newer features (available in 3.12+) including trying to use target_...() functions nearly exclusively. As part of this, I was toying with cleaning up our use cases for adding compiler flags and similar definitions using real targets and

[CMake] Install needed libraries from add_subdirectory(... EXCLUDE_FROM_ALL)

2019-08-18 Thread Dustyn Blasig
Hi All, We have a build hierarchy of projects and generally we import needed projects into higher-level projects with EXLUDE_FROM_ALL so only dependency targets that are needed by the "uber" builds are built. However, if the subdirectory build produces shared libraries, we need those shared

Re: [CMake] Getting library name from library target to pass to legacy Makefile

2019-07-22 Thread Dustyn Blasig
ble with > version 3.15. > Le 22 juil. 2019 à 05:24 +0200, Dustyn Blasig , a écrit > : > > Hi All, > > I am integrating a legacy Makefile with our CMake flow, and need to pass > the name of a CMake library target to the Makefile via > add_custom_command(). The library uses the OU

Re: [CMake] FetchContent/ExternalProject and URL_HASH

2019-07-22 Thread Dustyn Blasig
ke the man-in-the-middle attacks? I definitely like the download and configure once and reuse the download offline part, that is useful! On Mon, Jul 22, 2019 at 5:58 AM Craig Scott wrote: > > > On Mon, Jul 22, 2019 at 10:37 AM Dustyn Blasig wrote: > >> Thanks for the info, Craig.

[CMake] Getting library name from library target to pass to legacy Makefile

2019-07-21 Thread Dustyn Blasig
Hi All, I am integrating a legacy Makefile with our CMake flow, and need to pass the name of a CMake library target to the Makefile via add_custom_command(). The library uses the OUTPUT_NAME property to override the default. add_library(foo_lib SHARED ...) set_target_properties(foo_lib

Re: [CMake] FetchContent/ExternalProject and URL_HASH

2019-07-21 Thread Dustyn Blasig
(and the underlying tools) will guarantee the file is downloaded successfully even in the event of a CTRL-C interruption or other signals? On Sun, Jul 21, 2019 at 3:49 AM Craig Scott wrote: > > > On Wed, Jul 17, 2019 at 12:59 PM Dustyn Blasig wrote: > >> Hi All, >>

[CMake] FetchContent/ExternalProject and URL_HASH

2019-07-16 Thread Dustyn Blasig
Hi All, We are pulling some artifacts from Artifactory which provides a checksum file along with the artifacts at .md5 or .sha256. If I do not include URL_HASH, does CMake automatically check to see if such a checksum file exists and use it's value for the hash check? Or is there a way to provide

[CMake] test_compile with compiler flags

2019-07-12 Thread Dustyn Blasig
Hi All, I'm sure there is a way to do this, but I'm not seeing it. I need to test a compiler flag to know whether to enable it for our entire build. So I had planned on using test_compile(), but I don't see a way to pass additional compiler flags to test_compile() through CMAKE_FLAGS and there's

Re: [CMake] CMake with FetchContent instead of Git Submodules

2019-06-28 Thread Dustyn Blasig
for the user. The former would only be done iff the repo doesn't already exist. On Fri, Jun 28, 2019 at 5:25 AM Craig Scott wrote: > > > On Fri, Jun 28, 2019 at 12:18 PM Dustyn Blasig wrote: > >> Hi All, >> >> I'm attempting to replace our use of git submodu

[CMake] CMake with FetchContent instead of Git Submodules

2019-06-27 Thread Dustyn Blasig
Hi All, I'm attempting to replace our use of git submodules with FetchContent flows instead so we can pull pre-built packages if they already exist instead of buildings locally. However, I need to support a flow similar to Git submodules where developers can edit a submodule and then rebuild the

Re: [CMake] ALL_BUILD with msbuild

2019-05-13 Thread Dustyn Blasig
Yay, just building ALL_BUILD.vcxproj directly worked! I did not realize we didn't need to build the solution for things to work. Thanks! On Mon, May 13, 2019 at 2:56 PM frodak17 wrote: > > > On Mon, May 13, 2019 at 1:05 PM Dustyn Blasig wrote: > >> Hi All, >> >

Re: [CMake] ALL_BUILD with msbuild

2019-05-13 Thread Dustyn Blasig
Give that a shot and see what happens along with the #2 way > of calling msbuild. > > -Caleb > > On Mon, May 13, 2019 at 1:05 PM Dustyn Blasig wrote: > >> Hi All, >> >> I'm trying to switch from devenv to msbuild on the command line so we can >> use the /

[CMake] ALL_BUILD with msbuild

2019-05-13 Thread Dustyn Blasig
Hi All, I'm trying to switch from devenv to msbuild on the command line so we can use the /m parallel build option. On devenv, I just build the ALL_BUILD target and it builds properly. However, on msbuild, there are two issues. 1. If I specify the ALL_BUILD target on the command line directly, I

[CMake] Split Build and Test Pipelines

2019-05-10 Thread Dustyn Blasig
Hi All, I'm curious if anyone has had success allowing two testing paths to coexist well. Currently, we are using CTest to run our test executables with `make test`. However, on our Jenkins system, the build machines have the whole development stack but the test machines do not. So we need a way

Re: [CMake] Linked Imported Library in Visual Studio Showing NOTFOUND

2019-04-17 Thread Dustyn Blasig
ORTED_IMPLIB.html ) > > Petr > > On Tue, 16 Apr 2019 at 21:37, Dustyn Blasig wrote: > >> Hi All, >> >> I'm trying to debug an issues where an imported shared library is showing >> up in the linker command as not found, but within the CM

[CMake] CXX and CUDACXX

2019-04-16 Thread Dustyn Blasig
Hi All, I'd like to understand the expectations with CMake 3.12+ with the following setup. project(foo LANGUAGES CXX CUDA) By default, should the CUDACXX compiler be using the found compiler for CXX for host-side compilation? What I'm seeing is that host-side compilation for CUDA is not

[CMake] Object library build fails due to missing include folder from linked interface library

2019-04-08 Thread Dustyn Blasig
Hi All, I have a component similar to this setup ... project(foo LANGUAGES CXX CUDA) add_library(foo INTERFACE) target_include_directories(foo INTERFACE ) add_library(bar OBJECT bar.cu) target_link_libraries(bar PUBLIC foo) When building *bar*, there is no "-I " in the command line

Re: [CMake] CUDA Support

2019-03-29 Thread Dustyn Blasig
gt; wrote: > Hi, > > That was my confusion as well: to my understanding, we should not try to > combine enable_language(CUDA) with find_package(CUDA). They do not work > together, either use one or another. > > Kind regards, > - Dmitry. > > пт, 29 мар. 2019 г. в 19:58, Dusty

[CMake] CUDA Support

2019-03-29 Thread Dustyn Blasig
Hi All, I can't find any documentation on the new-ish "native" CUDA support. I need to know all the variables that we can use, and (for instance) whether checking the CUDA version is now supported. When searching online, I'm always directed to the old FindCUDA pages which don't seem to match what

Re: [CMake] Parent component options passed to ExternalProject

2019-03-27 Thread Dustyn Blasig
it to work with zip files even though it seems like it should at this point. I'm hoping the fetch and include as subdirectory will be a more stable approach. On Tue, Mar 26, 2019 at 4:39 PM Craig Scott wrote: > > > On Tue, Mar 26, 2019 at 4:02 AM Dustyn Blasig wrote: > >> Hi All,

[CMake] Parent component options passed to ExternalProject

2019-03-25 Thread Dustyn Blasig
Hi All, I'm really struggling to use ExternalProject_Add() in our CMake project. Based on the documentation, I was expecting the simplest Git-based external project with all defaults to act just like using a Git submodule locked at a specific commit.

Re: [CMake] Help Utilizing Binary Caches

2016-12-22 Thread Dustyn Blasig
If there is some additional information needed, let me know. I'm mostly looking for advice, so if this has never been done successfully, that would be good to know as well. Thx! On Fri, Dec 16, 2016 at 9:19 AM Dustyn Blasig <dus...@blasig.us> wrote: > Hello Everyone, > > I'm fair

[CMake] Help Utilizing Binary Caches

2016-12-16 Thread Dustyn Blasig
Hello Everyone, I'm fairly new to CMake, but have been learning as I try to migrate our components from Make to CMake. We utilize Git and Submodules for many of our components, along with the Atlassian tools like Bitbucket and Bamboo. While I'm migrating the components to CMake, I was asked to