Stefano Bonicatti
08/02/2019, 7:10 PMset(source_files
"${CMAKE_CURRENT_BINARY_DIR}/empty_osqueryd_target_source_file.cpp"
${CMAKE_CURRENT_BINARY_DIR}/windows_resources.rc
)
[...]
configure_file(
${CMAKE_SOURCE_DIR}/tools/windows_resources.rc.in
${CMAKE_CURRENT_BINARY_DIR}/windows_resources.rc
@ONLY)
[...]
add_osquery_executable(osqueryd "${source_files}")
here: https://github.com/osquery/osquery/blob/c2fde72fa6c67083b7e56001d51054345977d809/osquery/CMakeLists.txt#L55TonyC
08/27/2019, 10:32 PMStefano Bonicatti
08/28/2019, 1:47 AMempty_osqueryd_target_source_file.cpp
one has to be passed, might want to do something like:
[...]
set(source_files "${CMAKE_CURRENT_BINARY_DIR}/empty_osqueryd_target_source_file.cpp")
generateBuildTimeSourceFile(${source_files} "extern int main(int argc, char* argv[]);")
list(APPEND source_files "${CMAKE_CURRENT_BINARY_DIR}/windows_resources.rc")
[...]
extern int main(int argc, char* argv[]);
, which it shouldTonyC
08/28/2019, 4:16 AMStefano Bonicatti
08/28/2019, 9:23 AM-DOSQUERY_VERSION="4.0.0"
at the configure phaseTonyC
08/28/2019, 3:19 PMStefano Bonicatti
08/28/2019, 3:26 PMTonyC
08/28/2019, 3:27 PM